Thread: Timer problem

  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, 06:24 PM
  2. design problem
    By hannibar in forum C Programming
    Replies: 6
    Last Post: 11-17-2005, 06:22 PM
  3. Replies: 5
    Last Post: 11-07-2005, 11: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, 09:35 AM