/** * return true if the limit has been exceeded * @return true if a limit was set and the current time * exceeds it. */ public boolean getLimitExceeded() { return limit >= 0 && ((now() - start) > limit); }
/** * Start * @return self */ public Duration start() { start = now(); return this; }
/** * return true if the limit has been exceeded * @return true if a limit was set and the current time * exceeds it. */ public boolean getLimitExceeded() { return limit >= 0 && ((now() - start) > limit); }
/** * Start * @return self */ public Duration start() { start = now(); return this; }
public void finish() { finish = now(); }
public void finish() { finish = now(); }