My Elma Project
An event loop manager for embedded systems
 All Classes Functions
user_interface.h
1 #include <iostream>
2 #include <chrono>
3 #include <vector>
4 #include <ncurses.h>
5 
6 #include "stopwatch.h"
7 
8 namespace stopwatch {
9 
10  using namespace std::chrono;
11  using namespace elma;
12  using namespace stopwatch;
13 
15  class UserInterface : public Process {
16 
17  public:
18 
22 
23  void init() {}
24  void start() {}
25 
27  void show_time(int x, int y, high_resolution_clock::duration d);
28 
30  void update();
31  void stop() {}
32 
33  private:
34  StopWatch& _stopwatch;
35 
36  };
37 
38 }
Definition: off.h:6
A user interface for the a StopWatch object.
A stop watch class, that inherits from StateMachine.
Definition: stopwatch.h:16