My Elma Project
An event loop manager for embedded systems
Main Page
Classes
Files
File List
All
Classes
Functions
src
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;
15
StopWatch
stopwatch
;
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
}
stopwatch
Definition:
off.h:6
chrono
stopwatch::UserInterface
A user interface for the a StopWatch object.
Definition:
user_interface.h:15
stopwatch::StopWatch
A stop watch class, that inherits from StateMachine.
Definition:
stopwatch.h:16
elma
Generated on Thu Mar 14 2019 18:49:22 for My Elma Project by
1.8.8