CPU clock with all of the pre-reversion history

includes all changes from previous pull request, without the profanity and with more history