src/base/platform/elapsed-timer.h
TimeDelta Restart() {
    DCHECK(IsStarted());
    TimeTicks ticks = Now();
    TimeDelta elapsed = ticks - start_ticks_;
    DCHECK_GE(elapsed.InMicroseconds(), 0);
    start_ticks_ = ticks;
    DCHECK(IsStarted());
    return elapsed;
  }
// Restarts the timer and returns the time elapsed since the previous start.
// This method is equivalent to obtaining the elapsed time with |Elapsed()|
// and then starting the timer again, but does so in one single operation,
// avoiding the need to obtain the clock value twice. It may only be called
// on a previously started timer.
Restarts the timer and returns the time elapsed since the previous start.
This method is equivalent to obtaining the elapsed time with |Elapsed()|
and then starting the timer again, but does so in one single operation,
avoiding the need to obtain the clock value twice. It may only be called
on a previously started timer.
Restarts the timer and returns the time elapsed since the previous start . This method is equivalent to obtaining the elapsed time with |Elapsed () | and then starting the timer again but does so in one single operation avoiding the need to obtain the clock value twice . It may only be called on a previously started timer .
TimeDelta Restart() {
    DCHECK(IsStarted());
    TimeTicks ticks = Now();
    TimeDelta elapsed = ticks - start_ticks_;
    DCHECK_GE(elapsed.InMicroseconds(), 0);
    start_ticks_ = ticks;
    DCHECK(IsStarted());
    return elapsed;
  }
TimeDelta Restart ( ) { DCHECK ( IsStarted ( ) ) ; TimeTicks ticks = Now ( ) ; TimeDelta elapsed = ticks - start_ticks_ ; DCHECK_GE ( elapsed . InMicroseconds ( ) , 0 ) ; start_ticks_ = ticks ; DCHECK ( IsStarted ( ) ) ; return elapsed ; }
Restarts the timer and returns the time elapsed since the previous start.
Restarts the timer and returns the time elapsed since the previous start .