Originally Posted by
IGAU
I do have <sys/timeb.h>, so I'm looking at ftime(), but I don't really understand it's application. I'm not an advanced programmer in any respects... Sorry to sound like a newbie or whatever, but can someone expand on it's use in plain English a bit for me?
How about plain C:
Code:
#include <stdio.h>
#include <sys/timeb.h>
int main()
{
struct timeb tmb;
ftime(&tmb);
printf("tmb.time = %ld (seconds)\n", tmb.time);
printf("tmb.millitm = %d (mlliseconds)\n", tmb.millitm);
return 0;
}
Dave