Hello,
Im trying to come up with code for measuring the total time.
If a pixel takes lets say a 1 millisec to do some calculation, whatabout the n pixels.
But I want to display that in the format of, scaledNow kind of format
Thanks
pdk
Im trying to come up with code for measuring the total time.
If a pixel takes lets say a 1 millisec to do some calculation, whatabout the n pixels.
But I want to display that in the format of, scaledNow kind of format
Code:
auto start = std::chrono::steady_clock::now();
sleep(1);
auto actualNow = std::chrono::steady_clock::now();
auto timePassed = actualNow - start;
auto timePassedScaled = timePassed * 2.0;
auto scaledNow = start + timePassedScaled;pdk