Changes between Version 2 and Version 3 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/CTimer
- Timestamp:
- 08/26/10 16:42:11 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/CTimer
v2 v3 4 4 CTimer is a C++ class for timer functions. 5 5 6 == Constructor ==6 == Constructors == 7 7 8 8 {{{ 9 CTimer(void); 10 9 11 CTimer(int nValue, bool bMilliseconds = false); 10 12 }}} … … 18 20 {{{ 19 21 CTimer tmr(10); 22 23 tmr.Start(); // Start 10 second count 24 25 while(1) 26 { 27 // ... We can do some processing here 28 if(tmr.GetExpired()) 29 { 30 // 10 seconds is up 31 break; 32 } 33 } 34 }}} 35 36 {{{ 37 CTimer tmr; 38 39 tmr.Set(10); 20 40 21 41 tmr.Start(); // Start 10 second count … … 56 76 }}} 57 77 78 === Clear === 79 80 {{{ 81 void Clear(void); 82 }}} 83 84 ==== Parameters ==== 85 * nValue - Time value, if bMilliseconds is false value is seconds, otherwise value is milliseconds 86 * bMilliseconds - True to interpret nValue as milliseconds, false nValue is interpreted as seconds. 87 88 ==== Return Value ==== 89 90 Function does not return a value. 91 92 ==== Remarks ==== 93 94 ==== Example ==== 95 96 {{{ 97 98 }}} 99