MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / timestamp

Function timestamp

tests/fuzztests/fuzztests.cpp:633–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631
632
633static const char* timestamp()
634{
635 static char buf[32];
636 time_t time = std::time(NULL);
637 strcpy(buf, std::asctime(std::localtime(&time)));
638 buf[strlen(buf) - 1] = '\0'; // Remove trailing newline
639 return buf;
640}
641
642extern "C" { typedef void (*signal_handler_t)(int); }
643static std::atomic<std::uint64_t> g_seed(0);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected