elapsed_seconds

View page source

Returns Elapsed Number of Seconds

Syntax

# include <cppad/utility/elapsed_seconds.hpp>

s = elapsed_seconds ()

Accuracy

This routine uses std::chrono::steady_clock to do its timing.

s

is a double equal to the number of seconds since the first call to elapsed_seconds .

Example

The routine elapsed_seconds.cpp is an example and test of this routine.