namespace sys.core
class StopWatch
A class used to measure the time delta between two events.
this{};
Creates a new instance and starts 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.