Get_Time_Since_Reset

Gets the amount of time since the last reboot.

Return Value

Returns the number of milliseconds that the computer has been non-suspended since the last reboot.

Example

Script( Get_Time_Since_Reset_Test )
String( strTitle )
String( strMessage )
Number( nMilliseconds )
Number( nSeconds )
Number( nMinutes )
Number( nHours )
Number( nDays )
Activate( From_Menu )
strTitle = "The time since the last reboot, excluding time the device was suspended"
nMilliseconds = Get_Time_Since_Reset
nSeconds = Number_Divide( nMilliseconds, 1000 )
nMinutes = Number_Divide( nSeconds, 60 )
nHours = Number_Divide( nMinutes, 60 )
nDays = Number_Divide( nHours, 24 )
strMessage = String_Combine( Number_To_String_Decimal( nMilliseconds ), " milliseconds = " )
strMessage = String_Combine( strMessage, Number_To_String_Decimal( nSeconds ) )
strMessage = String_Combine( strMessage, " seconds = " )
strMessage = String_Combine( strMessage, Number_To_String_Decimal( nMinutes ) )
strMessage = String_Combine( strMessage, " minutes = " )
strMessage = String_Combine( strMessage, Number_To_String_Decimal( nHours ) )
strMessage = String_Combine( strMessage, " hours = " )
strMessage = String_Combine( strMessage, Number_To_String_Decimal( nDays ) )
strMessage = String_Combine( strMessage, " days" )
Ask_OK( strMessage, strTitle )
Return

See Also

Delay, Wait_For_Screen_Update_With_Timeout , Get_Time, Reboot

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal