start Method
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 method.
Syntax
void start([optional] Accumulator
accumulatorName);
Parameters
- accumulatorName
- [in] Optional reference to an Accumulator object, which provides the Accumulator for the recorded durations of the associated Event. When this parameter is not specified (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");
Duration readTime = listener.durationFactory("duration of read");
readTime.start();
...