Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vi/timeskew
Override time reporting in Linux processes (accelerate/slowdown games, test code involving timers/delays)
https://github.com/vi/timeskew
cheat clock-gettime gettimeofday ld-preload ld-preload-hack ldpreload time
Last synced: 19 days ago
JSON representation
Override time reporting in Linux processes (accelerate/slowdown games, test code involving timers/delays)
- Host: GitHub
- URL: https://github.com/vi/timeskew
- Owner: vi
- Created: 2012-01-24T14:04:42.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T23:38:09.000Z (about 3 years ago)
- Last Synced: 2024-11-08T11:03:24.952Z (2 months ago)
- Topics: cheat, clock-gettime, gettimeofday, ld-preload, ld-preload-hack, ldpreload, time
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 44
- Watchers: 8
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-ld-preload - timeskew - override time reporting in Linux processes (accelerate/slowdown games, test code involving timers/delays) (Libraries)
README
(Note: the project is hacky and unreliable)
1. "make" will provide libtimeskew.so
2. Use `TIMESKEW="2 1" LD_PRELOAD=./libtimeskew.so program` to start program with time 2x faster than usual
3. Create/update "timeskew" file in current directory to update time coefficient, e.g. `echo 1 3 > timeskew` - slow down 3x.TIMESHIFT also sets constant time shift
License=MIT or (at your option) GPLv3
See also:
* Forked timeskew with a GUI (not tested myself): https://github.com/id01/timeskew
* https://github.com/wolfcw/libfaketime