CppAD: A C++ Algorithmic Differentiation Package 20110419
double elapsed_seconds ( void  ) [inline]

Returns the elapsed number since the first call to this function.

This routine tries is accurate to within .02 seconds. It does not necessary work for time intervals that are less than a day.

  • If running under the Microsoft system, it uses ::GetSystemTime for timing.
  • Otherwise, if gettimeofday is available, it is used.
  • Otherwise, std::clock() is used.
Returns:
The number of seconds since the first call to elapsed_seconds.

Definition at line 101 of file elapsed_seconds.hpp.

Referenced by CppAD::speed_test(), and CppAD::SpeedTest().