AlmarM Posted December 22, 2008 Share Posted December 22, 2008 (edited) Hi, Whats _TimeToTicks exactly? I just cant figure out. AlmarM EDIT: Oh and _TicksToTime Edited December 22, 2008 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Pain Posted December 22, 2008 Share Posted December 22, 2008 (edited) Tick, the smallest increment of system time as measured by a computer system...http://en.wikipedia.org/wiki/System_time Edited December 22, 2008 by Pain Link to comment Share on other sites More sharing options...
AlmarM Posted December 22, 2008 Author Share Posted December 22, 2008 Ehm, so what does it do >.<? AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
TurionAltec Posted December 22, 2008 Share Posted December 22, 2008 As best as I can tell it converts between milliseconds, and hours: minutes: seconds. Which may be useful if you know how many hours and minutes you want to delay, but the sleep() command only takes milliseconds as a parameter Link to comment Share on other sites More sharing options...
Pain Posted December 22, 2008 Share Posted December 22, 2008 Converts the specified hours, minutes, and seconds to ms. #include <Date.au3> $iHours = 00 $iMins = 00 $iSecs = 01 $StartTicks = _TimeToTicks($iHours,$iMins,$iSecs) ConsoleWrite($iHours&":"&$iMins&":"&$iSecs&@cr) ConsoleWrite($StartTicks &@cr) Link to comment Share on other sites More sharing options...
AlmarM Posted December 22, 2008 Author Share Posted December 22, 2008 So _TimeToTicks converts for example @HOUR:$MIN:$SEC into MS And _TicksToTime converts MS into $HOUR:$MIN:$SEC ? AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. 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