implementation/src/main/java/io/smallrye/metrics/app/SimpleTimerImpl.java
public void time(Runnable event) {
        final long startTime = clock.getTick();
        try {
            event.run();
        } finally {
            update(Duration.ofNanos(clock.getTick() - startTime));
        }
    }
/**
     * Times and records the duration of event.
     *
     * @param event a {@link Runnable} whose {@link Runnable#run()} method implements a process
     *        whose duration should be timed
     */
Times and records the duration of event.
@param event a  Runnable whose  Runnable#run() method implements a process
whose duration should be timed
Times and records the duration of event . @param event a Runnable whose Runnable#run () method implements a process whose duration should be timed
public void time(Runnable event) {
        final long startTime = clock.getTick();
        try {
            event.run();
        } finally {
            update(Duration.ofNanos(clock.getTick() - startTime));
        }
    }
public void time ( Runnable event ) { final long startTime = clock . getTick ( ) ; try { event . run ( ) ; } finally { update ( Duration . ofNanos ( clock . getTick ( ) - startTime ) ) ; } }
Times and records the duration of event.
Times and records the duration of event .