getting time is const
Stefan Schuermans

Stefan Schuermans commited on 2014-03-18 22:39:13
Showing 2 changed files, with 2 additions and 2 deletions.

... ...
@@ -174,7 +174,7 @@ time_t Time::toSec() const
174 174
  * @brief convert to floating point seconds
175 175
  * @return time in seconds
176 176
  */
177
-float Time::toFloatSec()
177
+float Time::toFloatSec() const
178 178
 {
179 179
   return m_sec + m_ns * 1.0e-9f;
180 180
 }
... ...
@@ -77,7 +77,7 @@ public:
77 77
    * @brief convert to floating point seconds
78 78
    * @return time in seconds
79 79
    */
80
-  float toFloatSec();
80
+  float toFloatSec() const;
81 81
 
82 82
   /**
83 83
    * @brief convert to struct timeval
84 84