#include <PixelTimeFormatter.h>
Definition at line 26 of file PixelTimeFormatter.h.
◆ PixelTimeFormatter()
pos::PixelTimeFormatter::PixelTimeFormatter |
( |
std::string |
source | ) |
|
|
inline |
◆ ~PixelTimeFormatter()
virtual pos::PixelTimeFormatter::~PixelTimeFormatter |
( |
| ) |
|
|
virtualdefault |
◆ getImSecTime()
struct timeval pos::PixelTimeFormatter::getImSecTime |
( |
void |
| ) |
|
|
inline |
◆ getITime()
struct tm* pos::PixelTimeFormatter::getITime |
( |
void |
| ) |
|
|
inline |
◆ getmSecTime()
static std::string pos::PixelTimeFormatter::getmSecTime |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 93 of file PixelTimeFormatter.h.
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);
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pos::PixelTTCciConfig::writeXMLHeader(), pos::PixelMaxVsf::writeXMLHeader(), pos::PixelPortCardConfig::writeXMLHeader(), pos::PixelMaskAllPixels::writeXMLHeader(), pos::PixelLTCConfig::writeXMLHeader(), pos::PixelLowVoltageMap::writeXMLHeader(), pos::PixelGlobalDelay25::writeXMLHeader(), pos::PixelTBMSettings::writeXMLHeader(), pos::PixelTrimAllPixels::writeXMLHeader(), pos::PixelTKFECConfig::writeXMLHeader(), pos::PixelFEDConfig::writeXMLHeader(), pos::PixelFEDCard::writeXMLHeader(), pos::PixelDetectorConfig::writeXMLHeader(), pos::PixelPortcardMap::writeXMLHeader(), pos::PixelNameTranslation::writeXMLHeader(), pos::PixelDACSettings::writeXMLHeader(), and pos::PixelCalibConfiguration::writeXMLHeader().
◆ getTime()
static std::string pos::PixelTimeFormatter::getTime |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 60 of file PixelTimeFormatter.h.
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,
References indexGen::date, AlCaHLTBitMon_QueryRunRegistry::string, and protons_cff::time.
Referenced by pos::PixelFEDCard::writeXML(), pos::PixelDetectorConfig::writeXML(), pos::PixelNameTranslation::writeXML(), pos::PixelTTCciConfig::writeXMLHeader(), pos::PixelMaxVsf::writeXMLHeader(), pos::PixelPortCardConfig::writeXMLHeader(), pos::PixelMaskAllPixels::writeXMLHeader(), pos::PixelLowVoltageMap::writeXMLHeader(), pos::PixelLTCConfig::writeXMLHeader(), pos::PixelGlobalDelay25::writeXMLHeader(), pos::PixelTBMSettings::writeXMLHeader(), pos::PixelTrimAllPixels::writeXMLHeader(), pos::PixelTKFECConfig::writeXMLHeader(), pos::PixelFEDConfig::writeXMLHeader(), pos::PixelFEDCard::writeXMLHeader(), pos::PixelDetectorConfig::writeXMLHeader(), pos::PixelPortcardMap::writeXMLHeader(), pos::PixelNameTranslation::writeXMLHeader(), pos::PixelDACSettings::writeXMLHeader(), and pos::PixelCalibConfiguration::writeXMLHeader().
◆ stopTimer()
void pos::PixelTimeFormatter::stopTimer |
( |
void |
| ) |
|
|
inline |
◆ writeXMLHeader()
virtual void pos::PixelTimeFormatter::writeXMLHeader |
( |
pos::PixelConfigKey |
key, |
|
|
int |
version, |
|
|
std::string |
path, |
|
|
std::ofstream * |
out, |
|
|
std::ofstream * |
out1 = nullptr , |
|
|
std::ofstream * |
out2 = nullptr |
|
) |
| const |
|
inlinevirtual |
◆ endTime_
struct timeval pos::PixelTimeFormatter::endTime_ |
|
private |
◆ origin_
std::string pos::PixelTimeFormatter::origin_ |
|
private |
◆ startTime_
struct timeval pos::PixelTimeFormatter::startTime_ |
|
private |
◆ verbose_
bool pos::PixelTimeFormatter::verbose_ |
|
private |