Return the duration for which this timer has been running.
This class is used to track the amount of time spent between invocations of its startTimer()/stopTimer() methods.
Given appropriate OS support it can also keep track of the RSS of the program at various points. By default, the Timer will print the amount of time it has captured to standard error when the last timer is destroyed, otherwise it is printed when its TimerGroup is destroyed. Timers do not print their information if they are never started.