Trying to use ElaspedMilliseconds and Reset (ArduinoTimer class)

When I try to compile I get the following errors:

Arduino: 1.8.3 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\ESchoch\Documents\Ed Transfer\Arduino\Blink_ArduinoTimer_2_Error\Blink_ArduinoTimer_2_Error.ino: In function 'void loop()':

Blink_ArduinoTimer_2_Error:18: error: 'ElaspedMilliseconds' was not declared in this scope

while (ElaspedMilliseconds() != OnTime) {

^

Blink_ArduinoTimer_2_Error:21: error: 'Reset' was not declared in this scope

Reset();

^

Blink_ArduinoTimer_2_Error:26: error: expected '}' at end of input

}

^

Blink_ArduinoTimer_2_Error:26: error: expected '}' at end of input

exit status 1
'ElaspedMilliseconds' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The sketch is below.


#include "ArduinoTimer.h"

int OnTime = 5000;
int OffTime = 1000;

ArduinoTimer OnTimeTimer;
ArduinoTimer OffTimeTimer;

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
while (ElaspedMilliseconds() != OnTime) {
digitalWrite(LED_BUILTIN, HIGH); //Turn on LED
{
Reset();
while (ElaspedMilliseconds() != OffTime) {
digitalWrite(LED_BUILTIN, LOW); //Turn off LED
}
Reset();
}


Any suggestions would be appreciated. (Note: My apologies but my knowledge of C++ is somewhat limited.)

I don't know anything about that library. You may find it simpler to do your timing without it. Have a look at Using millis() for timing. A beginners guide and at how millis() is used in the demo Several Things at a Time

...R