Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:20

0001 #ifndef FWCore_Utilities_TimeOfDay_h
0002 #define FWCore_Utilities_TimeOfDay_h
0003 
0004 #include <sys/time.h>
0005 #include <chrono>
0006 #include <iosfwd>
0007 
0008 namespace edm {
0009   struct TimeOfDay {
0010     TimeOfDay();
0011     explicit TimeOfDay(struct timeval const& tv);
0012     explicit TimeOfDay(std::chrono::system_clock::time_point const& tp);
0013 
0014     struct timeval tv_;
0015 
0016   private:
0017     static struct timeval setTime_();
0018   };
0019 
0020   std::ostream& operator<<(std::ostream& os, TimeOfDay const& tod);
0021 }  // namespace edm
0022 
0023 #endif