Skip to content

[runtime.c] Win/Linux getTimeFromTarget is not monotonic

For Win/Linux getTimeFromTarget is based on gettimeofday. It returns the OS wall-clock, which can shift backward/forward while eTrice is running, e.g. OS time sync.

Use a monotonic time instead. In addition, add this condition to etTime interface, it should applies to all platforms.