MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / get_micros

Method get_micros

OpenHD/ohd_common/src/openhd_util_time.cpp:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88uint32_t openhd::util::get_micros(std::chrono::nanoseconds ns) {
89 return static_cast<uint32_t>(
90 std::chrono::duration_cast<std::chrono::microseconds>(ns).count());
91}
92
93// Until we have std::atomic<uint64_t>
94class ThreadSafeINT64_t {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected