Changes between Version 2 and Version 3 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/CTimer


Ignore:
Timestamp:
08/26/10 16:42:11 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Time/CTimer

    v2 v3  
    44CTimer is a C++ class for timer functions.
    55
    6 == Constructor ==
     6== Constructors ==
    77
    88{{{
     9CTimer(void);
     10
    911CTimer(int nValue, bool bMilliseconds = false);
    1012}}}
     
    1820{{{
    1921CTimer tmr(10);
     22
     23tmr.Start(); // Start 10 second count
     24
     25while(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{{{
     37CTimer tmr;
     38
     39tmr.Set(10);
    2040
    2141tmr.Start(); // Start 10 second count
     
    5676}}}
    5777
     78=== Clear ===
     79
     80{{{
     81void 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
     90Function does not return a value.
     91
     92==== Remarks ====
     93
     94==== Example ====
     95
     96{{{
     97
     98}}}
     99