using GLFW
update processing of elapsed time