Interface TimeSource
- All Known Implementing Classes:
NtpTimeSource, SystemTimeSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The current instant, corrected however the host likes.
A scheduled name claim fires at a target time, and the OS clock is off by enough to miss it — tens
to hundreds of milliseconds is common. This seam lets a host feed corrected time in: the default
SystemTimeSource trusts the OS clock, NtpTimeSource corrects against an NTP server, and
a host that already holds a corrected clock plugs its own in and the library opens no socket for it.
- Since:
- 0.11.0
-
Method Summary
-
Method Details
-
now
-