MCPcopy Create free account
hub / github.com/Compaile/ctrack / get_platform

Function get_platform

benchmark/ctrack_benchmark.cpp:666–677  ·  view source on GitHub ↗

Get platform string

Source from the content-addressed store, hash-verified

664
665// Get platform string
666std::string get_platform()
667{
668#ifdef _WIN32
669 return "Windows";
670#elif __APPLE__
671 return "macOS";
672#elif __linux__
673 return "Linux";
674#else
675 return "Unknown";
676#endif
677}
678
679// Get current timestamp
680std::string get_timestamp()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected