Timer problem

This is a discussion on Timer problem within the C Programming forums, part of the General Programming Boards category; I'm creating a game, and I need a precise timer. I've been searching for timer functions that are precise enough, ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    61

    Timer problem

    I'm creating a game, and I need a precise timer. I've been searching for timer functions that are precise enough, but the highest precision I get is about 16ms. And I need to have at least a precision of 1ms.

    I've tried : time() (from time.h), clock() (from clock.h), getTickCount(), ... and a few more.
    None of them work.

    Does anyone know how this is done ?

    Thanks in advance.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    look at QueryHighPerformanceCounter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM
  2. design problem
    By hannibar in forum C Programming
    Replies: 6
    Last Post: 11-17-2005, 05:22 PM
  3. Replies: 5
    Last Post: 11-07-2005, 10:34 PM
  4. timer problem
    By robin171 in forum C Programming
    Replies: 2
    Last Post: 10-17-2005, 08:48 AM
  5. Help needed with external call, WinExec() and timer.
    By algorithm in forum Windows Programming
    Replies: 9
    Last Post: 11-07-2001, 08:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21