Observe value
The value to observe
Start a timer. Calling the returned function will observe the duration in seconds in the histogram.
Function to invoke when timer should be stopped. The value it returns is the timed duration.
Optional
Observe value