8 #ifndef PixelTimeFormatter_h
9 #define PixelTimeFormatter_h
36 std::cout <<
"[PixelTimeFormatter::PixelTimeFormatter()]\t\t Time counter started for " <<
origin_ << std::endl ;
46 std::cout <<
"[PixelTimeFormatter::stopTimer()]\t\t\t Elapsed time: " << stop-start <<
" seconds for " <<
origin_ << std::endl ;
57 thisTime = localtime( &aclock );
60 "%d-%02d-%02d %02d:%02d:%02d", thisTime->tm_year+1900,
77 thisTime = localtime( &aclock );
85 struct timeval msecTime;
86 gettimeofday(&msecTime, (
struct timezone *)0) ;
90 (
unsigned int)msecTime.tv_sec,
91 (
unsigned int)msecTime.tv_usec );
92 return std::string(theDate) ;
98 struct timeval msecTime;
99 gettimeofday(&msecTime, (
struct timezone *)0) ;