Menu

#54 Simple timer function like SDL_GetTicks() or glfwGetTime()

closed
nobody
None
5
2008-11-05
2007-11-14
Anonymous
No

It's a shame that free glut doesn't have a simple timer function like SDL_GetTicks() in SDL or glfwGetTime() in GLFW. Many 3D programs rely on such timing features to manage physics, fps, internal state flow etc. and it's relatively easy to implement, just look at the source code of the above mentioned functions.

Discussion

  • John Tsiombikas

    John Tsiombikas - 2008-03-16

    Logged In: YES
    user_id=1287389
    Originator: NO

    Hi, just a passer-by (I'm not a freeglut developer).
    I think you should close this bug, as freeglut, like the original glut, provides glutGet(GLUT_ELAPSED_TIME); which returns time since the beginning of the program (if I'm not mistaken) in milliseconds.

     
  • Sven Panne

    Sven Panne - 2008-11-05
    • status: open --> closed
     
  • Sven Panne

    Sven Panne - 2008-11-05

    As was already mentioned, there is glutGet(GLUT_ELAPSED_TIME).

     

Log in to post a comment.