26 #ifndef NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP
27 #define NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP
56 template<
typename DURATION>
83 Separator(
const std::string& first,
const std::string& subsequent);
96 std::string m_subsequent;
108 template<
typename DURATION>
112 return formatSeconds(time::duration_cast<time::seconds>(d), isLong);
124 #endif // NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP
std::string formatSeconds(time::seconds d, bool isLong)
friend std::ostream & operator<<(std::ostream &os, Separator &sep)
std::ostream & operator<<(std::ostream &os, Separator &sep)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
std::string formatTimestamp(time::system_clock::TimePoint t)
Separator(const std::string &first, const std::string &subsequent)
std::string formatDuration(DURATION d, bool isLong=false)
print different string on first and subsequent usage