Jump to content
Sign in to follow this  
Scripty

timerinit - can i have the $dif numbers i seconds?

Recommended Posts

Scripty

timerinit - can i have the $dif numbers i seconds?

is there a way or an opt() ?

Share this post


Link to post
Share on other sites
UEZ

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
Scripty

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 ? :)

Share this post


Link to post
Share on other sites
JLogan3o13

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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Scripty

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×