Thread: Timing sorts..

    #1
  1. Cast down
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    321
    Rep Power
    12

    Timing sorts..


    I have some sorts, I want to time them, right now I am using GetTickCount (milliseconds), what can I use that is more accurate? I once read counting about CPU cycles?
  2. #2
  3. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    gettimeofday() is microseconds. also there is the times() function,
    http://www.qnx.com/developer/docs/qn...f/t/times.html
    which i think is what you are talking about.

IMN logo majestic logo threadwatch logo seochat tools logo