UI: Add duration times for State/Render groups

This set of patches adds duration and elapsed times for State/Render groups and some general cleanup.

In working on color coding the timeline with State/Render and Debug groups (issue #121) I found these changes useful.