Added IPS counter

IPS(iterations per second) tracks how many times the main loop is
executed in a second.