1

Is it possible to modify the Unix Time Clock so that the clock is running ten times faster? Something like a fast-forward by increasing a clock frequency or change the clock tick time?

Background is that i'am waiting here for an application that running on a linux system which has huge timeouts (hourly). I want to bypass these long timeouts with a faked clock. Which side effects can occur here?

  • Related: define own time in Linux – Mark Plotnick May 20 '15 at 17:31
  • Do you need the entire system to run fast, or would it be sufficient to restart this one application and have just it run faster? – roaima May 20 '15 at 18:27
2

You might try writing your own gettimeofday() routine, loading it into a compiled library, and using LD_PRELOAD to have your application get a faked time. This should not affect any other applications.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.