Scripty Posted October 26, 2012 Share Posted October 26, 2012 timerinit - can i have the $dif numbers i seconds? is there a way or an opt() ? Link to comment Share on other sites More sharing options...
caleb41610 Posted October 26, 2012 Share Posted October 26, 2012 (edited) divide by 1000 $seconds = timerdiff($timer) / 1000 Edited October 26, 2012 by caleb41610 Scripty 1 Multi-Connection TCP Server Link to comment Share on other sites More sharing options...
UEZ Posted October 26, 2012 Share Posted October 26, 2012 From ms to sec you have to devide the result with 1000. No opt() available just simple math. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Scripty Posted October 26, 2012 Author Share Posted October 26, 2012 divide by 1000$seconds = timerdiff($timer) / 1000i did work even with / 1000 / 60 .. so i got it in minuts but i get this kind of number 1.24959369367937you know how to short it down to 3 or 4 decimals ? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 26, 2012 Moderators Share Posted October 26, 2012 You can always trim the output down to what you would like. Something like this should work: $start = TimerInit() Sleep(30000) MsgBox(0, "", StringTrimRight(TimerDiff($start) / 1000, 10)) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2012 Developers Share Posted October 26, 2012 Use stringformat for that 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...
Scripty Posted October 26, 2012 Author Share Posted October 26, 2012 You can always trim the output down to what you would like. Something like this should work: $start = TimerInit() Sleep(30000) MsgBox(0, "", StringTrimRight(TimerDiff($start) / 1000, 10)) super but... i need it in minuts before i short it down. HELP Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 26, 2012 Moderators Share Posted October 26, 2012 (edited) Caleb41610 already showed you a way to do this in Post #2. Create a couple of variables: $sec = TimerDiff($start) / 1000 $min = $sec / 60 Edit: Also, please do not PM members with the word HELP. I understand this is urgent for you; doesn't mean it is urgent for us Please stick to the forum to ask your questions. Edited October 26, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Scripty Posted October 26, 2012 Author Share Posted October 26, 2012 Caleb41610 already showed you a way to do this in Post #2. Create a couple of variables: $sec = TimerDiff($start) / 1000 $min = $sec / 60 Edit: Also, please do not PM members with the word HELP. I understand this is urgent for you; doesn't mean it is urgent for us Please stick to the forum to ask your questions. [sOLVED] Thanks Link to comment Share on other sites More sharing options...
caleb41610 Posted October 27, 2012 Share Posted October 27, 2012 Try looking at Round() in the help file Multi-Connection TCP Server 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