wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.71k stars 325 forks source link

I Cannot Speed Time With A Fix Date And Time #360

Closed cheznewa closed 2 years ago

cheznewa commented 2 years ago

Hello/Hi I Cant Speed Time With This Command :::::::::: faketime -f "2001-01-01 00:00:00 x5" bash For Example.

Please Juste Add A Fix/Static Time With Speed, (Already It A Relative Time With Speed)

Newa Out Master.

cheznewa commented 2 years ago

The Time Is Always Frozen, I Cant Accelerate/Slowing It.

wolfcw commented 2 years ago

Well, with the recent change, sleep 5 will only take 1 second when you run with x5, even with time frozen.

I'm afraid I don't understand which behavior you expect. You could already use FAKETIME_TIMESTAMP_FILE or FAKETIME_FOLLOW_FILE in combination with FAKETIME_DONT_RESET if you want to change faketime settings during run-time, although exporting a new value of the FAKETIME environment variable works fine in an interactive bash, too.

With a start-at date (using @), you can set x0 to freeze the time. Depending on how often you switch between faketime settings, disabling caching might be necessary.