SCAMP-5c SPI Interface  1.0.0
SCAMP-5c is connected to the flight computer via a SPI interface
jcStopwatch.hpp
1 
2 #ifndef JC_STOPWATCH_HPP
3 #define JC_STOPWATCH_HPP
4 
5 #include <cstdint>
6 #include <cstdlib>
7 
8 class jcStopwatch{
9 
10 protected:
11 
12  uint64_t frequency;
13 
14  union{
15  uint64_t start_point;
16  uint32_t sec_and_ns[2];
17  };
18 
19 public:
20 
21  jcStopwatch();
22 
23  void Reset();
24  double GetElapsedSeconds() const;
25  double GetElapsedMilliseconds() const;
26 
27 };
28 
29 #endif