implemented idle hooks to count the number of idle ticks
formatting
implemented a simple method for measuring the CPU load

The CPU load is the fraction of the passed system time that has not been spent executing the idle thread.