MCPcopy Create free account
hub / github.com/LBANN/lbann / stop

Method stop

include/lbann/utils/timer.hpp:89–94  ·  view source on GitHub ↗

@brief Get the total elapsed time in seconds. * * Resets the counter, so a subsequent call to stop() or check() * without another start() will return 0.0. * * @post running() returns @c false, as if reset() were called. */

Source from the content-addressed store, hash-verified

87 * @post running() returns @c false, as if reset() were called.
88 */
89 double stop() noexcept
90 {
91 auto elapsed_time = this->check();
92 this->reset();
93 return elapsed_time;
94 }
95
96 /** @brief Get the current elapsed time (seconds) without stopping. */
97 double check() const noexcept

Callers 4

finalize_caliperMethod · 0.45
timer_test.cppFile · 0.45
~ScopeTimerMethod · 0.45
stop_timerMethod · 0.45

Calls 2

checkMethod · 0.95
resetMethod · 0.95

Tested by

no test coverage detected