MCPcopy Create free account
hub / github.com/crayzeewulf/libserial / getTimeInMicroSeconds

Method getTimeInMicroSeconds

test/UnitTests.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66size_t
67UnitTests::getTimeInMicroSeconds()
68{
69 std::chrono::high_resolution_clock::duration timeNow =
70 std::chrono::high_resolution_clock::now().time_since_epoch() ;
71
72 return static_cast<size_t>(
73 std::chrono::duration_cast<std::chrono::microseconds>(timeNow).count()
74 ) ;
75}
76
77void
78UnitTests::testSerialStreamToSerialPortReadWrite()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected