nfd::tools::nfdc::text Namespace Reference

Classes

class  Separator
 print different string on first and subsequent usage More...
 

Functions

std::ostream & operator<< (std::ostream &os, Separator &sep)
 
std::string formatSeconds (time::seconds d, bool isLong)
 
std::string formatTimestamp (time::system_clock::TimePoint t)
 
template<typename DURATION >
std::string formatDuration (DURATION d, bool isLong=false)
 

Function Documentation

template<typename DURATION >
std::string nfd::tools::nfdc::text::formatDuration ( DURATION  d,
bool  isLong = false 
)

Definition at line 110 of file format-helpers.hpp.

std::string nfd::tools::nfdc::text::formatSeconds ( time::seconds  d,
bool  isLong 
)

Definition at line 113 of file format-helpers.cpp.

std::string nfd::tools::nfdc::text::formatTimestamp ( time::system_clock::TimePoint  t)

Definition at line 119 of file format-helpers.cpp.

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
Separator sep 
)

Definition at line 104 of file format-helpers.cpp.