Chris CollinsMore Script updates816e36911 years agoHistory
18 lines · 562 B · JavaScript
RawDownload
////  timer.js//  examples////  Copyright 2014 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// var one_timer = Script.setTimeout(function() { print("One time timer fired!"); }, 10000);var multiple_timer = Script.setInterval(function() { print("Repeating timer fired!"); }, 1000); // this would stop a scheduled single shot timerScript.clearTimeout(one_timer); // this stops the repeating timerScript.clearInterval(multiple_timer);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t