MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / steadyNowNs

Function steadyNowNs

app/src/DataModel/Scripting/JsWatchdog.cpp:36–40  ·  view source on GitHub ↗

* @brief Returns the steady-clock reading in nanoseconds, matching the watchdog thread. */

Source from the content-addressed store, hash-verified

34 * @brief Returns the steady-clock reading in nanoseconds, matching the watchdog thread.
35 */
36static qint64 steadyNowNs()
37{
38 using namespace std::chrono;
39 return duration_cast<nanoseconds>(steady_clock::now().time_since_epoch()).count();
40}
41
42//--------------------------------------------------------------------------------------------------
43// Construction

Callers 1

armMethod · 0.70

Calls 1

countMethod · 0.45

Tested by

no test coverage detected