Implement frame timestamps and use wpi::Now() for generation.

This commit is contained in:
Peter Johnson
2016-10-22 22:09:47 -07:00
parent aad1266a94
commit 1f6b386325
6 changed files with 23 additions and 7 deletions

View File

@@ -9,7 +9,6 @@
#define CAMERASERVER_FRAME_H_
#include <atomic>
#include <chrono>
#include <memory>
#include "llvm/StringRef.h"
@@ -24,7 +23,7 @@ class Frame {
friend class SourceImpl;
public:
typedef std::chrono::system_clock::time_point Time;
typedef uint64_t Time;
private:
struct Data {