total_secs
Counts the number of seconds since start of the game. Unlike
total_ticks, the total_secs counter is suspended when freeze_mode
is nonzero, thus skipping the time spent in menus.
Range:
0 .. unlimited
Type:
var, read-onlyExample:
define playtime, 1800; // 30 minutes playtime
function democheck()
{
while (total_secs < playtime) // loop until total_secs are greater than playtime
{
wait();
}
exit(); // exit the game
}
See also:
time, time_factor, fps_max, fps_min, fps_lock, total_ticks, wait, total_frames