scotty Posted August 13, 2006 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.
Danny35d Posted August 14, 2006 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
GaryFrost Posted August 14, 2006 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.
GaryFrost Posted August 14, 2006 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.
scotty Posted August 14, 2006 Author 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.
MTChristy98 Posted January 16, 2020 Posted January 16, 2020 13 year old post - perfect answer to my question about millisecond time stamps. NICE!!!
Earthshine Posted January 17, 2020 Posted January 17, 2020 Please do not resuscitate OLD threads My resources are limited. You must ask the right questions
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