I was wondering if there was an OpenGL function that gets the vertical refresh rate. If not, is there an X Windows functions that does it?

Thanks