CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
double CppAD::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 116 of file elapsed_seconds.hpp.

Referenced by parallel_ad(), speed_test(), SpeedTest(), and time_test().