public static class TimerImpl.Context extends Object implements org.eclipse.microprofile.metrics.Timer.Context
TimerImpl.time()| Modifier and Type | Method and Description |
|---|---|
void |
close()
Equivalent to calling
stop(). |
long |
stop()
Updates the timer with the difference between current and start time.
|
public long stop()
stop in interface org.eclipse.microprofile.metrics.Timer.Contextpublic void close()
stop().close in interface Closeableclose in interface AutoCloseableclose in interface org.eclipse.microprofile.metrics.Timer.ContextCopyright © 2017 JBoss by Red Hat. All rights reserved.