Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: timer functions

  1. #1

    timer functions

    hi there!
    for getting good 3d-graphic-results its important to time them accuratly.
    now herre comes my problem:
    the linker does not find the gettimeofday command.
    i include sys/time.h & unistd.h
    and of course i link into the project as well

    so cold it be that libc is interfeerng with some mesa libs or do i just do something wrong?

    thnX for every help you can give me
    yourZ FruchtSaft

  2. #2
    Intern Contributor
    Join Date
    Jul 2000

    Re: timer functions

    Might I make a suggestion. The standard timing functions are not only extremely slow but very inaccurate. You can get an optimized timer from for linux. Basically it reads cpu cylces and knowing the processor speed the time can easily be calculated. The link to the page where you can get this code is

    Good Luck with, email me if you have questions. I did not write this timer, nor am I taking any credit for it. But I do understand it.

    Neil Witcomb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts