MCPcopy Create free account
hub / github.com/Kong/insomnia / GetTimestamp

Function GetTimestamp

packages/insomnia/src/cpp/insomnia.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36std::wstring GetTimestamp() {
37 SYSTEMTIME st;
38 GetLocalTime(&st);
39
40 wchar_t buffer[32];
41 swprintf(buffer, 32, L"%04d-%02d-%02d %02d:%02d:%02d", st.wYear, st.wMonth, st.wDay, st.wHour,
42 st.wMinute, st.wSecond);
43
44 return buffer;
45}
46
47void DebugLog(const wchar_t *msg) {
48 if (!DebugMode)

Callers 1

DebugLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected