Perf counter

Added performance counter class for FPS display and framerate
independent animation.