Performance timer tweaks

- moved performance counter and drawing to separate file
- tweaks to performance drawing
Renamed FPScounter to PerfGraph

- Renamed FPScounter to PerfGraph
- dump avg times at exit