MCPcopy Create free account
hub / github.com/Anttwo/SuGaR / timestamp

Function timestamp

gaussian_splatting/SIBR_viewers/src/core/system/String.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 std::string timestamp(const std::string & format) {
155 auto now = std::time(nullptr);
156#ifdef SIBR_OS_WINDOWS
157 tm ltm = { 0,0,0,0,0,0,0,0,0 };
158 localtime_s(&ltm, &now);
159#else
160 tm ltm = *(std::localtime(&now));
161#endif
162 std::stringstream buffer;
163 buffer << std::put_time(&ltm, format.c_str());
164 return buffer.str();
165 }
166
167} // namespace sirb
168

Callers 1

captureViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected