Lightweight wrapper for template platform lambdas (stateless function pointers only).
void set(optional< T >(*f)(Args...))
Set the lambda function pointer.
time_t timestamp_now() override
Returns 0 (an invalid time) if the lambda gives no value.
TemplateLambda< int64_t > f_
void update() override
The time is computed on demand and never written to the system clock, so there is nothing to poll.
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.