CARLA
CarlaRecorderPlatformTime.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include <sstream>
10 #include <chrono>
11 
12 #pragma pack(push, 1)
14 {
15 
16  std::chrono::time_point<std::chrono::system_clock>
18 
19  double Time;
20 
21  void SetStartTime();
22  void UpdateTime();
23 
24  void Read(std::istream &InFile);
25 
26  void Write(std::ostream &OutFile);
27 
28 };
29 #pragma pack(pop)
std::chrono::time_point< std::chrono::system_clock > RecorderStartTime
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)