It is quite possible "user14923929" wrote a bad library.
In file included from /sketch/ArduinoTimer.cpp:1:0:
/sketch/ArduinoTimer.h:12:2: error: expected ';' after class definition
}
^
;
/sketch/ArduinoTimer.cpp:4:1: error: prototype for 'int ArduinoTimer::setTimeout(long unsigned int)' does not match any in class 'ArduinoTimer'
ArduinoTimer::setTimeout(unsigned long interval) {
^~~~~~~~~~~~
In file included from /sketch/ArduinoTimer.cpp:1:0:
/sketch/ArduinoTimer.h:3:14: error: candidate is: void ArduinoTimer::setTimeout(long unsigned int)
void setTimeout(unsigned long interval);
^~~~~~~~~~
sketch.ino:2:14: error: expected initializer before 'timer'
ArduinoTimer timer; // *Create an instance of the ArduinoTimer class
^~~~~
sketch.ino: In function 'void setup()':
sketch.ino:5:3: error: 'timer' was not declared in this scope
timer.setTimeout(1000); // *Set the interval to 1000ms (1 second)
^~~~~
sketch.ino: In function 'void loop()':
sketch.ino:11:7: error: 'timer' was not declared in this scope
if (timer.tick()) {
^~~~~
Error during build: exit status 1
Anyway, if the OP had shown the full output it'd be easier for us. And, on top of that, if he/she doesn't have much experience I wonder why needs a library to just have "timers", and why that one in particular (there are dozens of others, like THIS or THIS just to mention the first couple of "timer" libraries).
Or learn the use of millis(), that's the best idea.
I'm not sure about that. The "timer" is the variable defined in "ArduinoTimer timer;" and it looks like to be correct. But when compiling normally the first error is the main culprit because a missing semicolon on the library source will prevent the compiler to correctly process the subsequent part of code (and thowing many other errors out), so even the variable definition will be misinterpreted, and as the "timer" variable hasn't been defined, any usage will throw the compiler error.
i think demonstrating how simple it can be used provides a better explanation. use of a library suggests complexity and ignorance.
i've seen newbies write code with nested loops waiting for time to pass in place of delay(). A timer goes hand-in-hand with state machines or something having state.
so i think just saying use millis() leaves a lot to be learned
why answer a coding question with so much text and so little code. Would you describe a math equation or write the equation? Would you describe an electrical circuit or show a schematic diagram?