Appearance
PerformanceTimer Class
Definition
Represents a simple stopwatch that can be used to measure elapsed time.
- Namespace:
JASE.Performance - Assembly:
JASE.dll
Constructors
| Name | Description |
|---|---|
PerformanceTimer(bool start = null) | Initializes a new instance of the PerformanceTimer class. |
Properties
| Name | Description |
|---|---|
Elapsed | Gets the elapsed time, in milliseconds, since the stopwatch was started or restarted. |
EndTicks | Gets the ticks of the end time. |
EndTime | Gets the end time of the stopwatch. |
StartTicks | Gets the ticks of the start time. |
StartTime | Gets the start time of the stopwatch. |
Methods
| Name | Description |
|---|---|
TimeSpan CalculateTime() | Calculates the elapsed time since the stopwatch was started or restarted. |
bool IsRunning() | Checks if PerformanceTimer is actively running |
void Restart() | Restarts the performance timer |
void Start() | Starts the performance timer |
void Stop() | Stops the performance timer |
string ToString() |