Function uhlc::zero_clock
source · pub fn zero_clock() -> NTP64
Expand description
A dummy clock that returns a NTP64 initialized with the value 0.
Suitable to use in no_std environments where std::time::{SystemTime, UNIX_EPOCH} are not available.
If the feature std
is disabled, that’s the default clock used by an HLC
if HLCBuilder::with_clock()
is not called.
Notice that this means that the HLC
will use incremental timestamps starting from 0.