GorgHeLL Posted July 21, 2007 Share Posted July 21, 2007 Is there a way to make this code: $begin = TimerInit() sleep(3000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) to isplay the time in hours/minutes/secconds, which ever is the case? I did $dif / 1000 but i still get that nasty point after the secconds (too many numbers). and also it's only seconds, i would like to display minutes and hours also. And if no, is there another way to display a message box with how much time the application has stayed opened? But to display that in hours/minutes/secconds, and not milliseconds. Thanks. [font="Tahoma"]pr0tected by smith & wesson[/font] Link to comment Share on other sites More sharing options...
Fabry Posted July 21, 2007 Share Posted July 21, 2007 It's question of Mathe Hour: Int($temp/3600) Minutes: Int(Mod($temp,3600)/60) Seconds: Int(Mod($temp,60)) $time =Int($temp/3600)&':'&Int(Mod($temp,3600)/60)&':'&Int(Mod($temp,60))) A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center] Link to comment Share on other sites More sharing options...
Developers Jos Posted July 21, 2007 Developers Share Posted July 21, 2007 _TicksToTime ( $iTicks, $iHours, $iMins, $iSecs ) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fabry Posted July 21, 2007 Share Posted July 21, 2007 _TicksToTime ( $iTicks, $iHours, $iMins, $iSecs )I didn't see A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center] 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