Use TimeFrame for tracking time.
Fixed incorrect typedefs.
Fixed lag in picking.

We now make sure that any picking results are only calculated once
when the mouse button is pressed. This removes lag felt when pressing
and holding the mouse to bring up the menu.