| | |
[help]how to get the microsecond-precision in windows?
![]() |
•
•
Join Date: Oct 2008
Posts: 4
Reputation:
Solved Threads: 0
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
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
![]() |
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: Bios update no longer supports dual monitors
- Next Thread: find replace text
Views: 538 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Windows NT / 2000 / XP
.net 3.5 3daccelertion 2007 2010 activedirectory alaris android application audio auto automatically black blue book bulletin canonical cellphones chinese chkdsk collaboration computer crash deployments desktop domain dotnetnuke drive dual error errors explorer features folder fonts format hardware internet interoperability killprocess laptop laptops lcd linux load mac memory microsoft mobile monitor motionle1600 netbooks novell open opensource operatingsystems oracle osinstallationproblem partition product proxy raid rds remotedesktopconnection retail retrieve rootkit screen security server. slowperformance sp1 sp3 spyware studios technology ubuntu uninstall update upgrade usb verizon videogames virtual virus vista visual volume wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde






