MCPcopy Create free account
hub / github.com/SmingHub/Sming / clockTime

Method clockTime

Sming/Core/NanoTime.h:532–535  ·  view source on GitHub ↗

* @brief Obtain the actual Clock time by converting tick value * @retval TimeType */

Source from the content-addressed store, hash-verified

530 * @retval TimeType
531 */
532 static constexpr uint64_t clockTime()
533 {
534 return round_ce(double(ticks()) * TicksPerUnit::den / TicksPerUnit::num);
535 }
536
537 /**
538 * @brief Obtain the time in a different set of units

Callers 1

checkCallbackTimerMethod · 0.80

Calls 1

round_ceFunction · 0.85

Tested by

no test coverage detected