Jump to content

Recommended Posts

Posted

divide by 1000

$seconds = timerdiff($timer) / 1000

i did work even with

/ 1000 / 60 .. so i got it in minuts :)

but i get this kind of number 1.24959369367937

you know how to short it down to 3 or 4 decimals ? :)

  • Moderators
Posted

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!

  • Moderators
Posted (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 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!

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...