Results 1 to 2 of 2

Thread: timer functions

  1. #1
    Guest

    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 libc.so.6 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
    Member Contributor
    Join Date
    Jul 2000
    Posts
    60

    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 flipcode.com 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 http://www.flipcode.com/cgi-bin/msg....rum=cotd&id=-1

    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

Similar Threads

  1. Replies: 9
    Last Post: 10-18-2014, 02:00 PM
  2. Built-in Functions: Work-Item Functions
    By sean.settle in forum OpenCL
    Replies: 7
    Last Post: 11-17-2011, 07:39 AM
  3. timer
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-08-2006, 04:55 PM
  4. using timer with glx?
    By jasc in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-19-2002, 02:41 PM
  5. Has opengl got timer functions?
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-14-2001, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean