Returns a number representing the current time (with millisecond precision). Unlike with time(), the number returned by this function has no meaning of its own and may not be comparable across clients; however, since it also provides higher resolution it can be compared against itself for high-precision time measurements.

As of patch 4.3 this function's value is cached and will not change until the next OnUpdate fires. See debugprofilestop() for an alternative.

See also Utility functions.


time = GetTime()


  • time - A number that represents the current time in seconds (with millisecond precision) (number)