MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / timestamp_seconds_local

Function timestamp_seconds_local

src/framework/debug/trace.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54std::string timestamp_seconds_local() {
55 const auto now = std::chrono::system_clock::now();
56 const std::time_t now_time = std::chrono::system_clock::to_time_t(now);
57 std::tm local_tm{};
58#if defined(_WIN32)
59 localtime_s(&local_tm, &now_time);
60#else
61 localtime_r(&now_time, &local_tm);
62#endif
63 std::ostringstream out;
64 out << std::put_time(&local_tm, "%Y%m%d-%H%M%S");
65 return out.str();
66}
67
68std::string format_scalar_double(double value) {
69 char buffer[64];

Callers 4

trace_log_f32Function · 0.70
trace_log_i32Function · 0.70
trace_log_scalarFunction · 0.70
timing_log_scalarFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected