How to declare a variable for high resolution clock in C++?
问题 In the example here: https://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now They declared the clock time point with auto . auto start = std::chrono::high_resolution_clock::now(); and the doc says it returns 'A time point representing the current time.' But I am not sure how do declare in my code below because I am used to declaring the variables at the beginning of the function and I don't know what to declare it as. Code has been simplified here to show what I mean. What do I put