vx.Clock

From vx
Jump to: navigation, search

[edit] vx.Clock

A singleton object that handles timing.

[edit] Notes

As this is an internal object, you cannot create your own Clock object. This simply represents the type of a variable in the vx library. Just use the variable vx.clock to use this.

[edit] Attributes

vx.Clock.timer -> number (read/write)
vx.Clock.systemtime -> number (read)

  • Timing variables, both of which start at 0 when the program begins. They measure elapse in centiseconds of time. The timer variable can be written to unlike systemtime, which may be useful for timing some operations. Although, really, you can get away with just using timestamps and not ever modifying the timer. Ah well, the option's there.
Personal tools