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


Ignore:
Timestamp:
08/26/10 15:59:01 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v2  
     1[[TOC]]
    12= CTimer =
    23
    34CTimer is a C++ class for timer functions.
     5
     6== Constructor ==
     7
     8{{{
     9CTimer(int nValue, bool bMilliseconds = false);
     10}}}
     11
     12==== Parameters ====
     13 * nValue - Time value, if bMilliseconds is false value is seconds, otherwise value is milliseconds
     14 * bMilliseconds - True to interpret nValue as milliseconds, false nValue is interpreted as seconds.
     15
     16==== Example ====
     17
     18{{{
     19CTimer tmr(10);
     20
     21tmr.Start(); // Start 10 second count
     22
     23while(1)
     24{
     25    // ... We can do some processing here
     26    if(tmr.GetExpired())
     27    {
     28        // 10 seconds is up
     29        break;
     30    }
     31}
     32}}}
     33
     34== Member Functions ==
     35
     36=== Set ===
     37
     38{{{
     39void Set(int nValue, bool bMilliseconds = false);
     40}}}
     41
     42==== Parameters ====
     43 * nValue - Time value, if bMilliseconds is false value is seconds, otherwise value is milliseconds
     44 * bMilliseconds - True to interpret nValue as milliseconds, false nValue is interpreted as seconds.
     45
     46==== Return Value ====
     47
     48Function does not return a value.
     49
     50==== Remarks ====
     51
     52==== Example ====
     53
     54{{{
     55
     56}}}
     57