How can I find out what type the compiler deduced when using the auto
keyword?
Example 1: Simpler
auto tickTime = 0.001;
W
As a side note, to effectively print out the value in nextTickTime
you should explicitly convert to a suitable std::chrono::duration and output the result of duration::count.
using std::chrono::duration_cast;
using std::chrono::seconds;
auto baseTime = ...;
std::cout << std::setprecision(12) << duration_cast(nextTickTime - baseTime).count()
<< std::endl; // time in seconds