21#ifndef LSHCORE_UTIL_TIMEKEEPER_HPP
22#define LSHCORE_UTIL_TIMEKEEPER_HPP
Time utility to keep track of time around the code.
Definition timekeeper.hpp:33
uint32_t now
Stored time.
Definition timekeeper.cpp:23
auto getTime() -> const uint32_t &
Gets the cached timestamp from the last timeKeeper::update() call.
Definition timekeeper.hpp:43
__attribute__((always_inline)) inline void update()
Update stored time to real time.
Definition timekeeper.hpp:52
auto getRealTime() -> uint32_t
Gets the current time directly by calling millis().
Definition timekeeper.hpp:64
Internal bridge that imports user-defined macros into the library's scope.