- All Implemented Interfaces:
Observer
Observer implementation that supports delegation to another observer.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.zeroc.IceMX.Observer
Observer.MetricsUpdate<T>
-
Field Summary
Fields inherited from class com.zeroc.IceMX.ObserverWithDelegate
_delegate
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.zeroc.IceMX.ObserverWithDelegate
attach, detach, failed, getDelegate, getObserver, setDelegate
Methods inherited from class com.zeroc.IceMX.Observer
forEach, getEntry, getObserver, init
-
Constructor Details
-
ObserverWithDelegateI
public ObserverWithDelegateI()
-
-
Method Details
-
start
public void start()Starts the stopwatch. -
stop
public long stop()Stops the stopwatch and returns the elapsed time.- Returns:
- the elapsed time in microseconds
-
isStarted
public boolean isStarted()Checks whether the stopwatch is currently running.- Returns:
- true if the stopwatch is started, false otherwise
-
delay
public long delay()Gets the current elapsed time without stopping the stopwatch.- Returns:
- the elapsed time in microseconds since start was called
-