MTCNN-light icon indicating copy to clipboard operation
MTCNN-light copied to clipboard

Why the time is "start/10e3" but not "start/1e3"?

Open csyking opened this issue 8 years ago • 1 comments

Your code is: clock_t start; start = clock(); find.findFace(image); imshow("result", image); imwrite("result.jpg",image); start = clock() -start; cout<<"time is "<<start/10e3<<endl; Why you compute the time of "ms" with "start/10e3"? i. e. How to compute the time of "ms" with C++? I think it is right with "start/1e3".

looking forward for your reply.

best.

csyking avatar Jul 13 '17 10:07 csyking

The right answer is: cout<<"time is "<<(double)start/CLOCKS_PER_SEC*1000<<" ms "<<endl;

horse007666 avatar Oct 16 '18 05:10 horse007666