Once the recording interval for a Duration object has completed, stop is called to calculate the time that has passed since the start member function was executed. The elapsed time is then recorded (nanoseconds) to the current Accumulator and returned.
unsigned __int64 stop([optional] bool incrementCounter);
Listener *listener = new Listener("sampleApp", "4.0",
NULL, false);
Duration *readTime = listener->durationFactory("duration of read");
readTime->start(NULL);
...
unsigned __int64 totalRead = readTime->stop(true);
...