Class ManagedStopwatch
Managed stopwatch.
Inheritance
System.Object
ManagedStopwatch
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ManagedStopwatch
Constructors
ManagedStopwatch()
Initializes a new instance of the ManagedStopwatch class.
Declaration
public ManagedStopwatch()
Properties
ElapsedMilliseconds
Gets the total time measured by the stopwatch in milliseconds.
Declaration
public virtual long ElapsedMilliseconds { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ElapsedTicks
Gets the total time measured by the stopwatch in ticks.
Declaration
public virtual long ElapsedTicks { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
GetTimestamp()
Gets the current system timestamp in ticks.
Declaration
public static long GetTimestamp()
Returns
Type | Description |
---|---|
System.Int64 |
Restart()
Restarts the stopwatch.
Declaration
public virtual void Restart()
Start()
Starts the stopwatch.
Declaration
public virtual void Start()
Stop()
Stops the stopwatch.
Declaration
public virtual void Stop()