Thread: High resolution clock.

  1. #1
    Registered User nempo's Avatar
    Join Date
    Aug 2007
    Posts
    39

    High resolution clock.

    I was wondering if anyone had any high resolution clock resources laying around? API explenation and maybe some tutorial.

    Thanks.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    man gettimeofday

    Has a quite high resolution. Still not high enough for a MIDI timer, probably - look into ALSA for that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    HPET is the best you can get in terms of resolution, but your mainboard has to have the chip (newer ones does in most cases)

    http://en.wikipedia.org/wiki/High_Precision_Event_Timer

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical Error in Clock program
    By SVXX in forum C++ Programming
    Replies: 0
    Last Post: 05-10-2009, 12:12 AM
  2. Outside influences on clock cycles? (clock_t)
    By rsgysel in forum C Programming
    Replies: 4
    Last Post: 01-08-2009, 06:15 PM
  3. Clock Troubles
    By _Nate_ in forum C Programming
    Replies: 22
    Last Post: 06-19-2008, 05:15 AM
  4. clock program
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 03-30-2007, 10:12 PM
  5. low value, high value and increment
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 11-25-2001, 09:01 AM