![]() |
| ||
| REg: timestamp with milliseconds linux c++ hi all, i want to generate a timestamp with year,date,month,day,hours,min,seconds,milliseconds. in my code i generated a time integer with the help of time(). with that integer can i generate timestamp with milliseconds. sample code: int len;is it right??(i mean milli seconds calculation) i am using linux(fc6) thanks kriscbe |
| ||
| Re: REg: timestamp with milliseconds linux c++ 1. Try http://www.meangene.com/notes/time.html 2. As usually, time_t returned from time(...) is in seconds, not milliseconds. 3. Use code and /code tags to present your codes. |
| ||
| Re: REg: timestamp with milliseconds linux c++ Try gettimeofday() |
| All times are GMT -4. The time now is 4:45 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC