6 #ifndef PixelTimeFormatter_h 7 #define PixelTimeFormatter_h 34 std::cout <<
"[PixelTimeFormatter::PixelTimeFormatter()]\t\t Time counter started for " <<
origin_ 47 std::cout <<
"[PixelTimeFormatter::stopTimer()]\t\t\t Elapsed time: " << stop -
start <<
" seconds for " 55 std::ofstream *
out1 =
nullptr,
56 std::ofstream *
out2 =
nullptr)
const {
62 constexpr
size_t kBufferLength = 72;
63 char theDate[kBufferLength];
68 thisTime = localtime(&aclock);
72 "%d-%02d-%02d %02d:%02d:%02d",
73 thisTime->tm_year + 1900,
89 thisTime = localtime(&aclock);
95 constexpr
size_t kBufferSize = 20;
96 char theDate[kBufferSize];
97 struct timeval msecTime;
98 gettimeofday(&msecTime, (
struct timezone *)
nullptr);
100 snprintf(theDate, kBufferSize,
"%d-%d", (
unsigned int)msecTime.tv_sec, (
unsigned int)msecTime.tv_usec);
106 struct timeval msecTime;
107 gettimeofday(&msecTime, (
struct timezone *)
nullptr);
TEMPL(T2) struct Divides void
This class implements the configuration key which actually just is an integer.
static std::string const source