scotty Posted August 13, 2006 Share Posted August 13, 2006 I've seen some posts about this in the past, but I've not seen any solutions. Is it possible to get the current system time, including milliseconds? Something along the lines of hh:mm:ss:SSS. I've looked into using TimerInit(), but (I think) that gives you the number of milliseconds since the epoch. I'm not sure I want to take the time to create a algorithm for converting that number into a date and time format. Does anyone have any other ideas? Thanks for the help! We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see. Link to comment Share on other sites More sharing options...
Danny35d Posted August 14, 2006 Share Posted August 14, 2006 I can't remember who create this script but, I save it on my misc folder.... While 1 ToolTip(@Hour & ':' & @Min & ':' & @Sec & ':' & _MSec()) Sleep(1) WEnd Exit Func _MSec() Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort') DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime)) $sMilliSeconds = StringFormat('%03d', DllStructGetData($stSystemTime, 8)) $stSystemTime = 0 Return $sMilliSeconds EndFunc MTChristy98 1 AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
GaryFrost Posted August 14, 2006 Share Posted August 14, 2006 ; timer to "thousandths" of a second ; Author - Holger While 1 ToolTip(@Hour & ':' & @Min & ':' & @Sec & ':' & _MSec()) Sleep(1) WEnd Exit Func _MSec() Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort') DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime)) $sMilliSeconds = StringFormat('%03d', DllStructGetData($stSystemTime, 8)) $stSystemTime = 0 Return $sMilliSeconds EndFunc SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted August 14, 2006 Share Posted August 14, 2006 (edited) Just amazing what you can find when using that search function up in right side of the title bar. Edited August 14, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
scotty Posted August 14, 2006 Author Share Posted August 14, 2006 Thanks for the help. We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see. Link to comment Share on other sites More sharing options...
MTChristy98 Posted January 16, 2020 Share Posted January 16, 2020 13 year old post - perfect answer to my question about millisecond time stamps. NICE!!! Link to comment Share on other sites More sharing options...
Earthshine Posted January 17, 2020 Share Posted January 17, 2020 Please do not resuscitate OLD threads My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now