CppAD: A C++ Algorithmic Differentiation Package  20130102
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 110 of file elapsed_seconds.hpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines