31 #ifndef LEDGER_CORE_DURATIONUTILS_H    32 #define LEDGER_CORE_DURATIONUTILS_H    35 #include "DateUtils.hpp"    39 #include <fmt/format.h>    46             static std::string formatDuration(
const D& duration) {
    48                 auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
    49                 auto hours = ms / (60 * 60 * 1000);
    50                 ms = ms % (60 * 60 * 1000);
    51                 auto minutes = ms / (60 * 1000);
    52                 ms = ms % (60 * 1000);
    53                 auto seconds = ms / 1000;
    55                 return fmt::format(
"{}:{}:{}.{}", hours, minutes, seconds, ms);
    62 #endif //LEDGER_CORE_DURATIONUTILS_H Definition: DurationUtils.h:43
 
Definition: Account.cpp:8