namespace sys.core
class StopWatch
this{};
Creates a new instance and start keeping track of time. Calling `Elapsed` after is a valid operation.
this Stopped{};
Creates a new instance but does not start tracking time. Calling `Elapsed` after is a not valid operation and you must manually start keeping track of time by calling `Reset`.
def Reset();
Resets the internal statistics and starts tracking time from the point in time of the call.
func Elapsed(): Double;
Returns the elapsed time from the last time the tracking of time started, in milliseconds.
elapsed milliseconds
property IsHighResolution: Bool; get;
Returns `true` if the timer is a high resolution timer, with improved granularity.