MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / stop

Method stop

tests/BS_thread_pool_test.cpp:3452–3455  ·  view source on GitHub ↗

* @brief Stop measuring time and store the elapsed time since the object was constructed or since `start()` was last called. */

Source from the content-addressed store, hash-verified

3450 * @brief Stop measuring time and store the elapsed time since the object was constructed or since `start()` was last called.
3451 */
3452 void stop()
3453 {
3454 elapsed_time = std::chrono::steady_clock::now() - start_time;
3455 }
3456
3457 /**
3458 * @brief Get the number of milliseconds stored when `stop()` was last called.

Callers 1

check_performanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected