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

Function print_timing

tests/BS_thread_pool_test.cpp:3134–3140  ·  view source on GitHub ↗

* @brief Print the timing of a specific test. * * @param stats A struct containing the mean and standard deviation. * @param pixels_per_ms The number of pixels per millisecond. */

Source from the content-addressed store, hash-verified

3132 * @param pixels_per_ms The number of pixels per millisecond.
3133 */
3134void print_timing(const mean_sd& stats, const double pixels_per_ms)
3135{
3136 constexpr int width_mean = 6;
3137 constexpr int width_sd = 4;
3138 constexpr int width_pms = 7;
3139 logln("-> Mean: ", std::setw(width_mean), stats.mean, " ms, standard deviation: ", std::setw(width_sd), stats.sd, " ms, speed: ", std::setw(width_pms), pixels_per_ms, " pixels/ms.");
3140}
3141
3142/**
3143 * @brief Find the index of the minimum element in a vector.

Callers 1

check_performanceFunction · 0.85

Calls 1

loglnFunction · 0.85

Tested by

no test coverage detected