Class TimestampedObserver

java.lang.Object
org.apache.commons.io.input.ObservableInputStream.Observer
org.apache.commons.io.input.TimestampedObserver

An observer with timestamps.

For example:

 final TimestampedObserver timestampedObserver = new TimestampedObserver();
 try (ObservableInputStream inputStream = new ObservableInputStream(...),
     timestampedObserver)) {
     ...
 }
 System.out.printf("IO duration: %s%n", timestampedObserver.getOpenToCloseDuration());
 
Since:
2.9.0