timeout.h
Go to the documentation of this file.
00001 #ifndef CPR_TIMEOUT_H
00002 #define CPR_TIMEOUT_H
00003 
00004 #include <chrono>
00005 #include <cstdint>
00006 
00007 namespace cpr {
00008 
00009 class Timeout {
00010   public:
00011     Timeout(const std::chrono::milliseconds& duration) : ms{duration} {}
00012     Timeout(const std::int32_t& milliseconds) : Timeout{std::chrono::milliseconds(milliseconds)} {}
00013 
00014     long Milliseconds() const;
00015 
00016     std::chrono::milliseconds ms;
00017 };
00018 
00019 } // namespace cpr
00020 
00021 #endif


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:06