16 template <
typename SCALAR =
double>
32 inline void stop(
const SCALAR& time) { stop_time = time; }
ExternallyDrivenTimer()
Default constructor.
Definition: ExternallyDrivenTimer.h:21
void start(const SCALAR &time)
Trigger start.
Definition: ExternallyDrivenTimer.h:27
SCALAR getElapsedTime() const
Get the elapsed time between calls to start() and stop()
Definition: ExternallyDrivenTimer.h:37
CppAD::AD< CppAD::cg::CG< double > > SCALAR
void reset()
Resets the clock.
Definition: ExternallyDrivenTimer.h:42
void stop(const SCALAR &time)
Trigger stop.
Definition: ExternallyDrivenTimer.h:32
A timer ("stop watch") to record elapsed time based on external time stamps.
Definition: ExternallyDrivenTimer.h:17