Skip to content

chys87/slower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slower

This utility helps you run a program on Linux with the clock running more slowly or quickly than usual.

Usage

Build:

cd slower
make

You should get file libslower.so.

Run a program (take DOSBox as the example):

SLOWER_FACTOR=2 LD_PRELOAD=/path/to/libslower.so dosbox

Then have fun. You can adjust the value of SLOWER_FACTOR to achieve different ratios. Values between 0.01 and 100 (inclusive) are accepted. The larger the value, the slower the clock (as seen by the deceived application) runs.

You can also make install and use slower.sh instead:

/path/to/slower.sh -f 2 dosbox

HOW IT WORKS & TODO

This program hacks glibc time functions to deceive applications of the real time.

Currently hacked interfaces:

TODO:

About

Run a program with the clock running slowly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published