Constructor and Description |
---|
Timer(Clock clock)
Constructs and starts a stop watch.
|
Modifier and Type | Method and Description |
---|---|
Duration |
elapsedTime() |
Date |
getStartDate()
Deprecated.
|
void |
lap()
mark a lap, this method can be invoked multiple times but should be called before making a call to the
StopWatch.elapsedTime() method. |
void |
reset()
start or reset the stop watch starting position.
|
static Duration |
time(Runnable timed) |
public Timer(Clock clock)
@Deprecated public Date getStartDate()
public void reset()
StopWatch
StopWatch.lap()
.public void lap()
StopWatch
StopWatch.elapsedTime()
method.public Duration elapsedTime()
elapsedTime
in interface StopWatch
Copyright © 2009–2019 tempus-fugit committers. All rights reserved.