My Elma Project
An event loop manager for embedded systems
 All Classes Functions
main.cc
1 #include <iostream>
2 #include <chrono>
3 #include <vector>
4 #include <ncurses.h>
5 
6 #include "stopwatch.h"
7 
8 using namespace std::chrono;
9 using namespace elma;
10 using namespace stopwatch;
11 
12 int main() {
13 
14  Manager m;
16  UserInterface ui(stopwatch);
17 
18  m.schedule(ui, 10_ms)
19  .schedule(stopwatch, 10_ms)
20  .init()
21  .run();
22 
23  endwin();
24 
25 }
Definition: off.h:6
A user interface for the a StopWatch object.
A stop watch class, that inherits from StateMachine.
Definition: stopwatch.h:16