MCPcopy Create free account
hub / github.com/chronoxor/CppBenchmark / CurrentThreadId

Method CurrentThreadId

source/benchmark/system.cpp:388–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388uint64_t System::CurrentThreadId()
389{
390#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
391 return (uint64_t)pthread_self();
392#elif defined(_WIN32) || defined(_WIN64)
393 return GetCurrentThreadId();
394#else
395 #error Unsupported platform
396#endif
397}
398
399uint64_t System::Timestamp()
400{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected