1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Start (Algorithm algorithm, String id) const
| {
| Description:
| [*
| Start the stopwatch with the given id. From this moment in time the stopwatch is counting.
| If the stopwatch already had time on it, starting the stopwatch again will add to the time that was already there.
| If the stopwatch was already started, nothing happens.
| *]
| TextBody:
| [*
| if( not LibOpt_AlgorithmStopwatch::IsRunning( algorithm, id ) )
| {
| LibOpt_AlgorithmStopwatch::Use( algorithm, id );
| algorithm.StoreReal( LibOpt_AlgorithmStopwatch::StrTimeStart( id ), OS::PrecisionCounter() );
| LibOpt_AlgorithmStopwatch::SetRunning( algorithm, id, true );
| }
| *]
| }
|
|