Sajesh Posted April 2, 2008 Share Posted April 2, 2008 Hi, $begin = TimerInit() $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) This program gives different answers everytime I execute! Can anyone explain why? Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 2, 2008 Share Posted April 2, 2008 HI, cause there are so many other processes running on your PC. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
weaponx Posted April 2, 2008 Share Posted April 2, 2008 The difference is in milliseconds, why would it ever be the same? $begin = TimerInit() Sleep(1000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif / 1000) Should be within tolerance of 1 second. Typically 1.009 seconds for me. Link to comment Share on other sites More sharing options...
Sajesh Posted April 5, 2008 Author Share Posted April 5, 2008 HI,cause there are so many other processes running on your PC. MegaMega,Thanks for the explanantion!Sajesh Link to comment Share on other sites More sharing options...
Sajesh Posted April 5, 2008 Author Share Posted April 5, 2008 The difference is in milliseconds, why would it ever be the same?$begin = TimerInit()Sleep(1000)$dif = TimerDiff($begin)MsgBox(0,"Time Difference",$dif / 1000)Should be within tolerance of 1 second. Typically 1.009 seconds for me.Hmmm.. Thanks for the explanantion! 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