method
Clock.reset
Clock.reset()
Resets the simulated clock back to 0 (the 1970 epoch). Handy at the start of a new run or a replay.
Example
program Demo {
handler Step phase Update {
Clock.reset()
}
}Clock.reset()
Resets the simulated clock back to 0 (the 1970 epoch). Handy at the start of a new run or a replay.
program Demo {
handler Step phase Update {
Clock.reset()
}
}