Jump to content

How can i convert this?


Recommended Posts

Is there a way to make this code:

$begin = TimerInit()

sleep(3000)

$dif = TimerDiff($begin)

MsgBox(0,"Time Difference",$dif)

to isplay the time in hours/minutes/secconds, which ever is the case?

I did $dif / 1000 but i still get that nasty point after the secconds (too many numbers). and also it's only seconds, i would like to display minutes and hours also.

And if no, is there another way to display a message box with how much time the application has stayed opened? But to display that in hours/minutes/secconds, and not milliseconds.

Thanks.

[font="Tahoma"]pr0tected by smith & wesson[/font]
Link to comment
Share on other sites

It's question of Mathe

Hour:

Int($temp/3600)

Minutes:

Int(Mod($temp,3600)/60)

Seconds:

Int(Mod($temp,60))

$time =Int($temp/3600)&':'&Int(Mod($temp,3600)/60)&':'&Int(Mod($temp,60)))
A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
Link to comment
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
 Share

  • Recently Browsing   0 members

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