Skip to content
Snippets Groups Projects
Commit 0af6a6e4 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Document requirement to call clocks_set_cpufreq()

Lose a figure to keep output shorter, the field will expand as necessary
parent 912f28d4
No related branches found
No related tags found
2 merge requests!136Master,!107Code timing and verbosity
...@@ -229,7 +229,9 @@ const char *clocks_getunit() { return clocks_units[clocks_units_index]; } ...@@ -229,7 +229,9 @@ const char *clocks_getunit() { return clocks_units[clocks_units_index]; }
/** /**
* @brief returns the time since the start of the execution in seconds * @brief returns the time since the start of the execution in seconds
* *
* The time is return in the format [ssssss.s] * Need to call clocks_set_cpufreq() to mark the start of execution.
*
* The time is return in the format [sssss.s].
* *
* @result the time since the start of the execution * @result the time since the start of the execution
*/ */
...@@ -237,7 +239,7 @@ const char *clocks_get_timesincestart() { ...@@ -237,7 +239,7 @@ const char *clocks_get_timesincestart() {
static char buffer[40]; static char buffer[40];
sprintf(buffer, "[%08.1f]", sprintf(buffer, "[%07.1f]",
clocks_diff_ticks(getticks(), clocks_start) / 1000.0); clocks_diff_ticks(getticks(), clocks_start) / 1000.0);
return buffer; return buffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment