Better delta

Delta time should now be correctly computed.