libosmocore
0.9.6-14.20170220git32ee5af8.fc33
Osmocom core library
|
#include <stdbool.h>
#include <sys/time.h>
Functions | |
int | osmo_gettimeofday (struct timeval *tv, struct timezone *tz) |
shim around gettimeofday to be able to set the time manually. To override, set osmo_gettimeofday_override == true and set the desired current time in osmo_gettimeofday_override_time. | |
void | osmo_gettimeofday_override_add (time_t secs, suseconds_t usecs) |
convenience function to advance the fake time. Add the given values to osmo_gettimeofday_override_time. | |
Variables | |
bool | osmo_gettimeofday_override = false |
struct timeval | osmo_gettimeofday_override_time = { 23, 424242 } |