Changed the time animation

Switched from using getTimeofDay() to glfwGetTime() which should be more
stable