I added following code to measure to learn how many milliseconds program lasted. The problem is I get 1065 Clocks and 1065 Milli seconds. Is it normal that they are equal? Maybe my equation is wrong which converts clock into milliseconds? Thanks in advance
finishClock = clock();
timeCount = finishClock - startClock ;
printf("Clocks passed: %f\n Milli Seconds passed: %f",timeCount, timeCount*1000/CLOCKS_PER_SEC);
Based on the Tcl References
here , they are synonymous:
If the -option argument is -milliseconds, then the command is synonymous with clock milliseconds (see below). This usage is obsolete, and clock milliseconds is to be considered the preferred way of obtaining a count of milliseconds.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.