Get seconds and minutes.
#1

Hello all Im needing of some help, i need to get the seconds and minutes from a timer, how can i do it?
Reply
#2

You need to get seconds and minutes from a timer? How is that possible, you set the timer, so how is the question of getting it, coming from? Please explain your thing properly!
Reply
#3

Set a repeatedly running timer for 1 second and increment a value every time it runs (count seconds) and have a function to convert the seconds into minutes & seconds.

minutes = floor(seconds/60)
seconds -= 60*minutes

(I don't know pawn but that's the idea)
Reply
#4

I want to convert this this time in milliseconds 113000 to minutes and seconds.
Reply
#5

113000 / 1000 ( MS to seconds ) = 113 / 60 ( Seconds to minutes ) = 1,83 minutes.
Reply
#6

Thanks Cameltoe it worked rep++;
Reply
#7

That's simple math**
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)