8devices / wakaama

Eclipse Wakaama (formerly liblwm2m) is an implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
0 stars 4 forks source link

Use monotonic clock #49

Closed GiedriusM closed 6 years ago

GiedriusM commented 6 years ago

Currently lwm2m_time() and lwm2m_millis() may be affected by system time change and have jitter. Code that operates on time intervals should use monotonic clock source. Absolute time should be used only when really necessary.

Linux clocks: https://linux.die.net/man/3/clock_gettime