Thread: implementing time.h to quicksort and selectionsort algorithm

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    Question implementing time.h to quicksort and selectionsort algorithm

    How do you implement time.h in quicksort and selectionsort?

    This is because I need to do a comparative study of their running times but I do not know how to do it.

    Your help will be truly appreciated!

    Thanks.

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    how to get time in millisecond

    Thanks.

    But I believe it only gets time in seconds and the program finishes in less than a second.

    Thus 0 second is recorded.

    How do I get it to compute how fast it executes in milliseconds?

    Thanks again!

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: how to get time in millisecond

    Originally posted by ghe02
    Thanks.

    But I believe it only gets time in seconds and the program finishes in less than a second.

    Thus 0 second is recorded.

    How do I get it to compute how fast it executes in milliseconds?

    Thanks again!
    You did read all of Salem's post, right?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed