Returns the time elapsed between the last frame in milliseconds. It can be used to sync animations with the frame rate.