start Member Function

Indicates the beginning of the time interval that is to be measured (accumulated) for the Duration object. Once the interval has completed, the application will call 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 will continue 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
Duration Class
Listener Class
stop Member Function