Skip to content

Latest commit

 

History

History

time

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

$mol_state_time

State of time moment.

API

now( precision? : number ) : number

Returns timestamp that updates every precision ms. If precision is zero, then updates every animation frame.

Usage example

@ $mol_mem
remaining_time( deadline : number ) {
	return deadline - $mol_state_time.now()
}