3 ms·
There's a well-known libfaketime library, that can forge the current system time. https://github.com/wolfcw/libfaketime https://github.com/wolfcw/libfaketime
by segfaultbuserr 8y ago
There's a well-known libfaketime library, that can forge the current system time.
https://github.com/wolfcw/libfaketime https://github.com/wolfcw/libfaketime
Here's my friend's LD_PRELOAD hack, it pushes the idea further: hooking gettimeofday() to make a program to think that the time goes faster or slower. Useful for testing.
https://github.com/m13253/clockslow https://github.com/m13253/clockslow
- eclipxe 8y agoLove it!
- frankc 8y agoI believe libfaketime also supports speeding up and slowing down time
- roghummal 8y ago>Useful for testing. And as a speed hack for Quake 2!
- kreetx 8y agoYeah, that hack was a great insight!!
- stillworks 8y agoHow about an entire business being setup around this little gem https://www.vornexinc.com/our-overview.htm https://www.vornexinc.com/our-overview.htm EDIT : Not libfaketime but the LD_PRELOAD recipe