libosmocore  0.10.2
Osmocom core library
timer_gettimeofday.c File Reference
#include <stdbool.h>
#include <sys/time.h>
#include <osmocom/core/timer_compat.h>

Functions

int osmo_gettimeofday (struct timeval *tv, struct timezone *tz)
 shim around gettimeofday to be able to set the time manually. More...
 
void osmo_gettimeofday_override_add (time_t secs, suseconds_t usecs)
 convenience function to advance the fake time. More...
 

Variables

bool osmo_gettimeofday_override = false
 
struct timeval osmo_gettimeofday_override_time = { 23, 424242 }