Helper to measure a process time. More...
Helper to measure a process time.
Provides Min, Max and AverageTime value of a time triggered by successive Start and Stop. This object can be published through dynamic invocation mechanism to monitor real-time behaviour of the execution or to measure part of execution in order to diagnostic where to optimize the code when necessary.
Public Member Methods | |
const TimeSpan & | GetMaxTime () const |
The maximum time measured between Start and Stop. More... | |
const TimeSpan & | GetMaxTime () |
The maximum time measured between Start and Stop. More... | |
const TimeSpan & | GetMinTime () const |
The minimum time measured between Start and Stop. More... | |
const TimeSpan & | GetMinTime () |
The minimum time measured between Start and Stop. More... | |
const TimeSpan & | GetAverageTime () const |
The average time measured between Start and Stop. The value is filtered and evoluate slowly. More... | |
const TimeSpan & | GetAverageTime () |
The average time measured between Start and Stop. The value is filtered and evoluate slowly. More... | |
const TimeSpan & | GetLastTime () const |
The last time measured between Start and Stop. More... | |
const TimeSpan & | GetLastTime () |
The last time measured between Start and Stop. More... | |
const Int32 & | GetMeasureCount () const |
The number of Start. More... | |
const Int32 & | GetMeasureCount () |
The number of Start. More... | |
TimeMeasurement () | |
Default constructor. More... | |
void | Start () |
Start trigger of the cylce. More... | |
void | Stop () |
Stop trigger of the cylce. More... | |
void | Reset () |
Reset all measurement values. More... | |
void | Invoke (const DynamicInvocationRequest &request, DynamicInvocationResult &result) |
Invokes the object fields and methods. More... | |
Protected Member Functions | |
void | SetMaxTime (const TimeSpan &value) |
The maximum time measured between Start and Stop. More... | |
void | SetMinTime (const TimeSpan &value) |
The minimum time measured between Start and Stop. More... | |
void | SetAverageTime (const TimeSpan &value) |
The average time measured between Start and Stop. The value is filtered and evoluate slowly. More... | |
void | SetLastTime (const TimeSpan &value) |
The last time measured between Start and Stop. More... | |
void | SetMeasureCount (const Int32 &value) |
The number of Start. More... | |
Private fields | |
TimeSpan | MaxTime |
The maximum time measured between Start and Stop. More... | |
TimeSpan | MinTime |
The minimum time measured between Start and Stop. More... | |
TimeSpan | AverageTime |
The average time measured between Start and Stop. The value is filtered and evoluate slowly. More... | |
TimeSpan | LastTime |
The last time measured between Start and Stop. More... | |
Int32 | MeasureCount |
The number of Start. More... | |
TimeMeasurement | ( | ) |
Default constructor.
|
inline |
The average time measured between Start and Stop. The value is filtered and evoluate slowly.
|
inline |
The average time measured between Start and Stop. The value is filtered and evoluate slowly.
|
inline |
The last time measured between Start and Stop.
|
inline |
The last time measured between Start and Stop.
|
inline |
The maximum time measured between Start and Stop.
|
inline |
The maximum time measured between Start and Stop.
|
inline |
The number of Start.
Stop occurences.
|
inline |
The number of Start.
Stop occurences.
|
inline |
The minimum time measured between Start and Stop.
|
inline |
The minimum time measured between Start and Stop.
|
virtual |
Invokes the object fields and methods.
request | The request. |
result | [in,out] The result. |
Dynamic Invocation on IInvocable objects enables us to have remote access on published fields and methods.
Implements IInvocable.
void Reset | ( | ) |
Reset all measurement values.
|
inlineprotected |
The average time measured between Start and Stop. The value is filtered and evoluate slowly.
[in] | value | The new parameter value. |
|
inlineprotected |
The last time measured between Start and Stop.
[in] | value | The new parameter value. |
|
inlineprotected |
The maximum time measured between Start and Stop.
[in] | value | The new parameter value. |
|
inlineprotected |
The number of Start.
Stop occurences.
[in] | value | The new parameter value. |
|
inlineprotected |
The minimum time measured between Start and Stop.
[in] | value | The new parameter value. |
void Start | ( | ) |
Start trigger of the cylce.
void Stop | ( | ) |
Stop trigger of the cylce.
|
private |
The average time measured between Start and Stop. The value is filtered and evoluate slowly.
|
private |
The last time measured between Start and Stop.
|
private |
The maximum time measured between Start and Stop.
|
private |
|
private |
The minimum time measured between Start and Stop.