From 0af6a6e4939f63767d4891e5e75e7854698390c3 Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Tue, 8 Mar 2016 11:09:12 +0000
Subject: [PATCH] Document requirement to call clocks_set_cpufreq()

Lose a figure to keep output shorter, the field will expand as necessary
---
 src/clocks.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/clocks.c b/src/clocks.c
index 50a4c62412..5d662a2c1c 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;
-- 
GitLab