Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.core;
 
A timing context.

See also:
Timer.time()
 
public class TimerContext {
    private final Timer timer;
    private final Clock clock;
    private final long startTime;

    
Creates a new TimerContext with the current time as its starting value and with the given Timer.

Parameters:
timer the Timer to report the elapsed time to
    TimerContext(Timer timerClock clock) {
        this. = timer;
        this. = clock;
        this. = clock.tick();
    }

    
Stops recording the elapsed time and updates the timer.
    public void stop() {
    }
New to GrepCode? Check out our FAQ X