timer maximum time

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
roev
New user
Posts: 2
Joined: 10 Aug 2018, 10:01

timer maximum time

#1 Post by roev » 05 Oct 2019, 19:25

Hello,

For a delay I am looking for the value range for the timer
In the commands reference list I found

TimerSet Rules
Start a timed event
TimerSet,<timernr>,<timeInSeconds>
TimerSet,<timernr>,0 disables the timer

What is maximum time in seconds ?

TD-er
Core team member
Posts: 8754
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: timer maximum time

#2 Post by TD-er » 05 Oct 2019, 19:43

It does not look like there is actually a check on the maximum.
So I would think the practical maximum is ((2^31 / 1000) - 1) seconds.
The timer is compared to another timestamp, which is in msec.
If the difference is >0, it has not yet passed, if it is <=0 it has passed.

The max. positive difference can be (2^31 - 1) msec, which is roughly 24.8 days.
But I don't think that's a very useful timer interval :)

Post Reply

Who is online

Users browsing this forum: No registered users and 75 guests