Ahh, thanks a lot guys. That's so simple.. can't believe I didn't think of it before. Always overlook such things. I'm using glfw which has a handy glfwGetTime() function that gives me the time the program has been running in milliseconds. It's all a man needs.