Skip to content

Time

Time utilities. This object is available simply by typing Time.

Properties

time

time: number, read-only.

The number of seconds since the application was started at the beginning of this frame.

delta

delta: number, read-only.

The time, in seconds, taken to complete the last frame of the application. Use this value to make your application behave consistently regardless of the frame rate.

now

now: number, read-only.

The number of seconds since the application was started at the moment this property is evaluated.

Available since: SurgeScript 0.5.4

Note:

Since Time.now may return different values during the same frame of your application, it's generally advisable to use Time.time instead.