MCPcopy Create free account
hub / github.com/clementgallet/libTAS / clockToType

Method clockToType

src/library/DeterministicTimer.cpp:482–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482SharedConfig::TimeCallType DeterministicTimer::clockToType(clockid_t clock)
483{
484 switch (clock) {
485 case CLOCK_REALTIME:
486 case CLOCK_REALTIME_ALARM:
487 case CLOCK_REALTIME_COARSE:
488 case CLOCK_TAI:
489 return SharedConfig::TIMETYPE_CLOCKGETTIME_REALTIME;
490 default:
491 return SharedConfig::TIMETYPE_CLOCKGETTIME_MONOTONIC;
492 }
493}
494
495SharedConfig::TimeCallType DeterministicTimer::clockToTypeUntracked(clockid_t clock)
496{

Callers 1

clock_gettimeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected