I'm sure some of you are familiar with programs that can increase the speed of you operating system. Programs, movies, games, etc. will run faster ( or slower ) than normal.

My first question is, how does this work? As simply as possible.

And my second quesiton is, does anybody have any suggestions on how i can write some code to be able to detect whether the OS is running faster, slower, or at normal speed.