|
libosmocore 1.11.0
Osmocom core library
|
Overriding Time: osmo_clock_gettime() More...
#include "config.h"Overriding Time: osmo_clock_gettime()
clock_gettime() by using a small shim osmo_clock_gettime().clock_gettime().struct timespec *ts = osmo_clock_override_gettimespec()) and set it as desired. Next time osmo_clock_gettime() is called, it will return the values previously set through the ts pointer.