ID:173586
 
Hi is sleep(36000) 60 minutes
Use a calculator
Ticks to Minutes:

Ticks/10/60

or minutes to ticks:

Minutes*60*10

So:

60*60=3600*10=36000


In other words: Yes
In response to Dession
Dession wrote:
Use a calculator

i did but was just making sure thanks.
In response to CrazyJedi
Here's a trick I use... at the top of your code, put this:

#define SECOND 10
#define SECONDS *10
#define MINUTE 600
#define MINUTES *600
#define HOUR 36000
#define HOURS *36000

When you use #define like this, whenever the compiler finds the first word (for instance, SECONDS), it reads it as whatever follows (for instance, *10)

so:

sleep (HOUR) will make a proc sleep for an hour.

sleep (30 MINUTES) will make a proc sleep for 30 *600, or 30 minutes.

Once you've got the definitions in, no calculator needed!
In response to Hedgemistress
That's a neat trick, I like it!
In response to Hedgemistress
Hedgemistress wrote:
Here's a trick I use... at the top of your code, put this:

#define SECOND 10
#define SECONDS *10
#define MINUTE 600
#define MINUTES *600
#define HOUR 36000
#define HOURS *36000

When you use #define like this, whenever the compiler finds the first word (for instance, SECONDS), it reads it as whatever follows (for instance, *10)

so:

sleep (HOUR) will make a proc sleep for an hour.

sleep (30 MINUTES) will make a proc sleep for 30 *600, or 30 minutes.

Once you've got the definitions in, no calculator needed!

cool thanks