start Member Function

Indicates the beginning of the time interval that is to be measured (accumulated) for the Duration object. After the interval completes, the application calls the stop member function.

Syntax

void start([optional] Accumulator *pAccumulator);

Parameters

pAccumulator
[in] Optional pointer to an Accumulator object, which provides the Accumulator for the recorded durations of the associated Event. When this parameter is set to NULL (default), the Accumulator that is already being used to record the durations continues to be used.

Example

Listener *listener = new Listener("sampleApp", "4.0", NULL, false);
Duration *readTime = listener->durationFactory("duration of read");
readTime->start(NULL);
...

See Also