Implement timers

Merged Niklas Haas requested to merge timers into master

TODO: OpenGL support

Merge request reports