diff --git a/src/clocks.c b/src/clocks.c index 50a4c624122f60e5b26eb5eb075a7774c119fc5d..5d662a2c1cc67d56c6f08b334554935cdecd4611 100644 --- a/src/clocks.c +++ b/src/clocks.c @@ -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 * - * 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 */ @@ -237,7 +239,7 @@ const char *clocks_get_timesincestart() { static char buffer[40]; - sprintf(buffer, "[%08.1f]", + sprintf(buffer, "[%07.1f]", clocks_diff_ticks(getticks(), clocks_start) / 1000.0); return buffer;