strftime(buffer,50,"%d/%m/%Y %H:%M:%S",loctime);
How do u know how can i also get the milliseconds of time?
strftime(buffer,50,"%d/%m/%Y %H:%M:%S",loctime); With the strftime i can get and the secs but i am not sure that this function can provide me also the ms.. I have cheched the manual but nothing appropriate was found |
Sorry, but I think the system clock is not exactly enough to provide milliseconds information. `struct tm', the data structure holding system clock information (see localtime(3)), has no entry therefore.
|
Are u sure about that?
|
Sorry, I was away for some days.
I've finally found a function which can give you the number of seconds since the Epoch, and the number of additional microseconds. Have a look at gettimeofday(2), declared in <sys/time.h>. Hope I could help, mschutte |
All times are GMT -5. The time now is 07:17 PM. |