MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / timevalToString

Method timevalToString

src/thundersvm/util/log.cpp:1106–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104 }
1105
1106 std::string DateTime::timevalToString(struct timeval tval, const char* format,
1107 const el::base::SubsecondPrecision* ssPrec) {
1108 struct ::tm timeInfo;
1109 buildTimeInfo(&tval, &timeInfo);
1110 const int kBuffSize = 30;
1111 char buff_[kBuffSize] = "";
1112 parseFormat(buff_, kBuffSize, format, &timeInfo, static_cast<std::size_t>(tval.tv_usec / ssPrec->m_offset),
1113 ssPrec);
1114 return std::string(buff_);
1115 }
1116
1117 base::type::string_t DateTime::formatTime(unsigned long long time, base::TimestampUnit timestampUnit) {
1118 base::type::EnumType start = static_cast<base::type::EnumType>(timestampUnit);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected