Skip to content

Time Functions

wagyourtail edited this page Jul 22, 2020 · 4 revisions

JS Only

the time functions are:

time()

Example: time.time();

returns the current time in milliseconds since the epoch (JAN 1 1970), or whatever your OS gives java for the time in milliseconds.

sleep(long)

Example:" time.sleep(1000);

literally sleeps the thread for an amount of milliseconds. Since every javascript script has its own thread, this shouldn't break anything.

Clone this wiki locally