Table of Contents

Interface IStopwatch

Namespace
Acuit.Pinpoint.Timing
Assembly
Acuit.Pinpoint.Timing.Abstractions.dll

A stopwatch that can be used to accurately measure elapsed time.

public interface IStopwatch

Properties

Elapsed

Gets the total elapsed time measured by the current instance.

TimeSpan Elapsed { get; }

Property Value

TimeSpan

ElapsedMilliseconds

Gets the total elapsed time measured by the current instance, in milliseconds.

long ElapsedMilliseconds { get; }

Property Value

long

Methods

Reset()

Stops time interval measurement and resets the elapsed time to zero.

void Reset()

Restart()

Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.

void Restart()

Start()

Starts, or resumes, measuring elapsed time for an interval.

void Start()

Stop()

Stops measuring elapsed time for an interval.

void Stop()