Lightweight speedhacking source. A "speedhack" is a way of manipulating the time of a program, usually used in games, it can slow down, speed up or even hault an entire program.
To use this, you must have detours express 3.0. Add it to your include directories and link with the library. The code will only have affect internally, to use on other programs, compile as a DLL and inject the it into the target process.
int main(int argc, char *argv[])
{
Speedhack::Setup(); //call this once
Speedhack::SetSpeed(0.5); //call this whenever you like
return 0;
}