... | ... |
@@ -334,25 +334,25 @@ |
334 | 334 |
|
335 | 335 |
void stop() |
336 | 336 |
{ |
337 | 337 |
if(_running && !--_running) { |
338 | 338 |
TimeStamp t; |
339 | 339 |
t.stamp(); |
340 | 340 |
start_time=t-start_time; |
341 | 341 |
} |
342 | 342 |
} |
343 | 343 |
|
344 | 344 |
///Halt (i.e stop immediately) the time counters |
345 | 345 |
|
346 |
///This function stops immediately the time counters, i.e. <tt>t. |
|
346 |
///This function stops immediately the time counters, i.e. <tt>t.halt()</tt> |
|
347 | 347 |
///is a faster |
348 | 348 |
///equivalent of the following. |
349 | 349 |
///\code |
350 | 350 |
/// while(t.running()) t.stop() |
351 | 351 |
///\endcode |
352 | 352 |
/// |
353 | 353 |
/// |
354 | 354 |
///\sa stop() |
355 | 355 |
///\sa restart() |
356 | 356 |
///\sa reset() |
357 | 357 |
|
358 | 358 |
void halt() |
0 comments (0 inline)