... | ... |
@@ -322,49 +322,49 @@ |
322 | 322 |
|
323 | 323 |
|
324 | 324 |
///Stop the time counters |
325 | 325 |
|
326 | 326 |
///This function stops the time counters. If start() was executed more than |
327 | 327 |
///once, then the same number of stop() execution is necessary the really |
328 | 328 |
///stop the timer. |
329 | 329 |
/// |
330 | 330 |
///\sa halt() |
331 | 331 |
///\sa start() |
332 | 332 |
///\sa restart() |
333 | 333 |
///\sa reset() |
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() |
359 | 359 |
{ |
360 | 360 |
if(_running) { |
361 | 361 |
_running=0; |
362 | 362 |
TimeStamp t; |
363 | 363 |
t.stamp(); |
364 | 364 |
start_time=t-start_time; |
365 | 365 |
} |
366 | 366 |
} |
367 | 367 |
|
368 | 368 |
///Returns the running state of the timer |
369 | 369 |
|
370 | 370 |
///This function returns the number of stop() exections that is |
0 comments (0 inline)