mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-08 00:18:19 +02:00
8 lines
No EOL
339 B
JavaScript
8 lines
No EOL
339 B
JavaScript
var one_timer = Script.setTimeout(function() { print("One time timer fired!"); }, 1000);
|
|
var multiple_timer = Script.setInterval(function() { print("Repeating timer fired!"); }, 1000);
|
|
|
|
// this would stop a scheduled single shot timer
|
|
Script.clearTimeout(one_timer);
|
|
|
|
// this stops the repeating timer
|
|
Script.clearInterval(multiple_timer); |