MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getCurrentTime

Function getCurrentTime

samples/common/sampleInference.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466#endif
467
468TimePoint getCurrentTime()
469{
470#if defined(__QNX__)
471 uint64_t const currentCycles = ClockCycles();
472 uint64_t const cyclesPerSecond = SYSPAGE_ENTRY(qtime)->cycles_per_sec;
473 // Return current timestamp in ms.
474 return static_cast<TimePoint>(currentCycles) * 1000. / cyclesPerSecond;
475#else
476 return std::chrono::high_resolution_clock::now();
477#endif
478}
479
480//!
481//! \struct SyncStruct

Callers 3

recordEnqueueTimeMethod · 0.85
runInferenceFunction · 0.85
runMultiTasksInferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected