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


Ignore:
Timestamp:
08/26/10 12:44:17 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v2 v3  
    44CSleep is a C++ class for sleep functions
    55
     6== Constructor ==
     7
     8{{{
     9CSleep(int nSeconds, int nMilliseconds);
     10}}}
     11
     12==== Parameters ====
     13 * nSeconds - Number of seconds to sleep when 'Pause' member function is called
     14 * nMilliseconds - Number of milliseconds to sleep when 'Pause' member function is called
     15
     16==== Example ====
     17
     18{{{
     19CSleep slp(0, 50);
     20
     21int n;
     22for(n = 0; n < 10; n++)
     23{
     24   printf("Item %d\r\n", n);
     25   slp.Pause();   // This will create a 50 millisecond delay between each iteration in the loop
     26}
     27}}}
     28
     29== Member Functions ==
     30
     31=== SetTime ===
     32Sets the pause time
     33
     34{{{
     35void SetTime(int nSeconds, int nMilliseconds);
     36}}}
     37
     38==== Parameters ====
     39 * nSeconds - Number of seconds to sleep when 'Pause' member function is called
     40 * nMilliseconds - Number of milliseconds to sleep when 'Pause' member function is called
     41
     42==== Return Value ====
     43
     44Function does not return a value.
     45
     46==== Remarks ====
     47
     48==== Example ====
     49
     50{{{
     51CSleep slp(0, 50);
     52
     53int n;
     54for(n = 0; n < 10; n++)
     55{
     56   printf("Item %d\r\n", n);
     57   slp.Pause();   // This will create a 50 millisecond delay between each iteration in the loop
     58}
     59
     60// Now we might want to reuse the same object with a different delay
     61slp.SetTime(0, 100);
     62for(n = 0; n < 10; n++)
     63{
     64   printf("Item %d\r\n", n);
     65   slp.Pause();   // This will create a 100 millisecond delay between each iteration in the loop
     66}
     67
     68}}}
     69
     70=== Pause ===
     71Pauses the amount of time specified by the constructor or SetTime
     72{{{
     73void Pause(void);
     74}}}
     75
     76==== Parameters ====
     77
     78Function does not accept any parameters
     79
     80==== Retrun Value ====
     81 
     82Function does not return any result.
     83
     84==== Remarks ====
     85
     86
     87==== Example ====
     88
     89{{{
     90CSleep slp(0, 50);
     91
     92int n;
     93for(n = 0; n < 10; n++)
     94{
     95   printf("Item %d\r\n", n);
     96   slp.Pause();   // This will create a 50 millisecond delay between each iteration in the loop
     97}
     98}}}
     99