Syntax # include <cppad/utility/elapsed_seconds.hpp> s = elapsed_seconds()
Purpose
This routine is accurate to within .02 seconds
(see elapsed_seconds.cpp
).
It does not necessary work for time intervals that are greater than a day.
If the C++11 std::chrono::steady_clock is available,
it will be used for timing.
Otherwise, if running under the Microsoft compiler,
::GetSystemTime will be used for timing.
Otherwise, if gettimeofday is available, it is used for timing.
Otherwise, std::clock() will be used for timing.
s
is a double equal to the
number of seconds since the first call to elapsed_seconds.