Hi Guys,
I am trying to access the system time using th eheader file time.h and then using ctime(). This is great for the system date and time in seconds and works ok. But I want the time in milliseconds. Does anyone know how to do this or where I am going wrong.
This is my code:
Code:
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t lt;
char c;
while(c !='z')
{
lt=time(NULL);
printf(ctime(<));
printf("\nPress Any key to Continue");
while((c=getchar()) != '\n')
{
printf("/n still not equal");
}
}
return(0);
}
Thanks
Andy.