hello,
the windows API GetSystemTime() could return the current time by a SYSTEMTIME struct variable,then the windows API SystemTimeToFileTime could change this struct into the form of 100-nanoseconds that ever passed since since January 1, 1601 (UTC),this number is stored in a FILETIME struct which has a high part and a low part.
but now I wanna get the current seconds(like the time() in time.h) and the microseconds that within one second(this is the point),
How can I convert the 100-nanoseconds value to what I want?
Or is there annother effective way to do this?
thanks.
-yogo

Recommended Answers

All 4 Replies

Wait im redading youre post

Are you hoping to use Windows as an accurate clock [absolute time] or as a stopwatch [relative time]?

Are you hoping to use Windows as an accurate clock [absolute time] or as a stopwatch [relative time]?

hi,
accurate clock [absolute time],I think,as I've posted.

regards
-yogo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.