Skip to content

Commit

Permalink
Merge pull request #2 from ddebree/remove-super-chrono-refs
Browse files Browse the repository at this point in the history
Remove references to super chrono.
  • Loading branch information
sofian committed Sep 27, 2015
2 parents cccf09b + adae65d commit 7a396f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ <h2>Advanced Usage</h2>

<h3> Time units </h3>
You can create a Chrono that counts in microseconds or seconds:
<pre class="prettyprint" ><code>Chrono myChronoMicros(SuperChrono::MICROS);
<pre class="prettyprint" ><code>Chrono myChronoMicros(Chrono::MICROS);
</code></pre>
<pre class="prettyprint" ><code>Chrono myChronoSeconds(SuperChrono::SECONDS);
<pre class="prettyprint" ><code>Chrono myChronoSeconds(Chrono::SECONDS);
</code></pre>

<h3> Custom time function </h3>
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Chrono myChrono;
#### Time units
You can create a Chrono that counts in microseconds or seconds:
```arduino
Chrono myChronoMicros(SuperChrono::MICROS);
Chrono myChronoSeconds(SuperChrono::SECONDS);
Chrono myChronoMicros(Chrono::MICROS);
Chrono myChronoSeconds(Chrono::SECONDS);
```

Expand Down Expand Up @@ -111,7 +111,7 @@ Stops/pauses the chronometer.

```arduino
// STOPS/PAUSES THE CHRONOMETER :
mySuperChrono.stop();
myChrono.stop();
```

Expand All @@ -121,7 +121,7 @@ Resumes the chronometer.

```arduino
// STOPS/PAUSES THE CHRONOMETER :
mySuperChrono.stop();
myChrono.stop();
```

Expand Down
10 changes: 5 additions & 5 deletions examples/Resolutions/Resolutions.ino
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include <SuperChrono.h>
#include <Chrono.h>

// Custom time function (just returns the number of times loop() was called).
unsigned long _loopCount = 0;
unsigned long loopTime() {
return _loopCount;
}

SuperChrono millisChrono;
SuperChrono microsChrono(SuperChrono::MICROS);
SuperChrono secondsChrono(SuperChrono::SECONDS);
SuperChrono loopChrono(loopTime);
Chrono millisChrono;
Chrono microsChrono(Chrono::MICROS);
Chrono secondsChrono(Chrono::SECONDS);
Chrono loopChrono(loopTime);

void setup() {
Serial.begin(57600);
Expand Down
4 changes: 2 additions & 2 deletions examples/StopResume/StopResume.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <SuperChrono.h>
#include <Chrono.h>

SuperChrono chrono;
Chrono chrono;
boolean passedFirstPost = false;

void setup() {
Expand Down

0 comments on commit 7a396f5

Please sign in to comment.