include/dll/util/timers.hpp
inline void dump_timers() {
    decltype(auto) timers = get_timers().timers;

    //Sort the timers by duration (DESC)
    std::sort(timers.begin(), timers.end(), [](auto& left, auto& right) {
        return left.duration > right.duration;
    });

    // Print all the used timers
    for (decltype(auto) timer : timers) {
        if (timer.name) {
            size_t count = timer.count;
            size_t duration = timer.duration;
            std::cout << timer.name << "(" << count << ") : "
                      << duration_str(duration)
                      << " (" << duration_str(duration / count) << ")" << std::endl;
        }
    }
}
/*!
 * \brief Dump the values of the timer on the console.
 *
 * This has no effect if the timers were disabled.
 */
\brief Dump the values of the timer on the console.
This has no effect if the timers were disabled.
\ brief Dump the values of the timer on the console . This has no effect if the timers were disabled .
inline void dump_timers() {
    decltype(auto) timers = get_timers().timers;
    std::sort(timers.begin(), timers.end(), [](auto& left, auto& right) {
        return left.duration > right.duration;
    });
    for (decltype(auto) timer : timers) {
        if (timer.name) {
            size_t count = timer.count;
            size_t duration = timer.duration;
            std::cout << timer.name << "(" << count << ") : "
                      << duration_str(duration)
                      << " (" << duration_str(duration / count) << ")" << std::endl;
        }
    }
}
inline void dump_timers ( ) { decltype ( auto ) timers = get_timers ( ) . timers ; std :: sort ( timers . begin ( ) , timers . end ( ) , [ ] ( auto & left , auto & right ) { return left . duration > right . duration ; } ) ; for ( decltype ( auto ) timer : timers ) { if ( timer . name ) { size_t count = timer . count ; size_t duration = timer . duration ; std :: cout << timer . name << " " << count << " " << duration_str ( duration ) << " " << duration_str ( duration / count ) << " " << std :: endl ; } } }
\brief Dump the values of the timer on the console.
\ brief Dump the values of the timer on the console .
//Sort the timers by duration (DESC) // Print all the used timers