Hello,
I am attempting to time several processes in my C++ program.
I am using the <time.h> library with the clock_t = clock() function. I am dividing the start and finish times by CLOCKS_PER_SEC.
However, in many cases the time is less than a second and I cannnot determine how to output this time without it being 0.
I have divided the resulting time by 1000 to produce milliseconds but this produces 0 as well.
With the <iomanip.h> library, I am able to produce decimal numbers up to about 20 places of precision after the 0. Even then I still get 0.000000 etc.
How would I explore the value of this extremely small number? How could I produce more decimal places? It appears to have a certain limit (about 20 places).



LinkBack URL
About LinkBacks


