Calculation program running time in VC

xiaoxiao2021-03-06  53

#include

Clock_t start, end; double duration;

START = clock ();

.... // Need to calculate the code of time

End = clock ();

DURATION = (Double) / clocks_per_sec; // The value obtained is the execution time of this code, in seconds.

转载请注明原文地址:https://www.9cbs.com/read-116871.html

New Post(0)