I'd like to make an application believe that time is going faster/slower than real time. I.e. I need to make all the time measurement APIs return t0+dt*s
with user-defined s
when t0+dt
is real time. This would affect anything like gettimeofday()
as well as timer_gettime()
and all related functions and mechanisms (including actual trigger times of timers).
I think of putting a hook somewhere which would change the visible time for the app.
In a Linux system, what is the best place to put such a hook, so that I didn't have to create too many hooks? Is there any central place for this?