how to calculate the execution time of over all program in opengl

hello all…

what is the command that use in openGL to calculate the execution time of over all the program in opengl ???

thanks in advance

There is no such magical GL command. :slight_smile:
Also, execution time cannot be calculated but measured.

Well, GL program executes both on CPU and GPU. CPU execution time can be measured by various system calls, and it is highly dependent on the operating system. On Windows using Performance Counter (QueryPerformanceCounter()/QueryPerformanceFrequency()) is the only valid solution. GPU execution time can be measured using timer query.