Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 337 Bytes

readme.md

File metadata and controls

18 lines (12 loc) · 337 Bytes

$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()
}