Interface IMeasuresTime
- Namespace
- CSF.Screenplay.Reporting
- Assembly
- CSF.Screenplay.dll
An object which acts as a stopwatch, intended for used in providing timing data for reports.
public interface IMeasuresTime : IDisposable
- Inherited Members
Methods
BeginTiming()
Begins the timer, recording/tracking time.
DateTimeOffset BeginTiming()
Returns
- DateTimeOffset
The current date & time, at the point when timing began.
Exceptions
- InvalidOperationException
If this method is used more than once upon the same object instance.
GetCurrentTime()
Gets the amount of time (wall clock time) which has elapsed since BeginTiming() was executed.
TimeSpan GetCurrentTime()
Returns
- TimeSpan
A timespan which is the time elapsed since timing began.
Exceptions
- InvalidOperationException
If this method is used before BeginTiming() has been executed.