none
clock() function of time.h in C doesn't work in run time.

    Question

  • Hi,

    In my application clock() function of time.h in C file doesn't work properly in runtime.

    I have clock() function of time.h in c to calculate the elapsed time for a process. it results in proper values for some time and wrong values for some time. when code is debugged in release or debug mode the values logged are proper. But in runtime it is not so.  In runtime, if application is run 7-8 times 2-3 times the elapsed time is wrong. searched through many online queries related many people have faced this problem. Does any one knows solution and provide it would be beeter.

    Thanks in advance :-)

    • Moved by SamAgain Thursday, July 29, 2010 6:00 AM not clr question (From:Common Language Runtime)
    Wednesday, July 28, 2010 5:23 AM

Answers