added rudimentary perf counter

The performance counter collects frametime in ms and displays every
~500ms. Might come in handy soon.