timer.h: Improved const correctness of local variable.

This commit is contained in:
orbitcowboy 2018-05-24 17:07:40 +02:00
parent d013cb2f0d
commit 9bf604c46c
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ struct TimerResultsData {
}
double seconds() const {
double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC;
const double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC;
return ret;
}
};