Message ID | 20230210130401.1181599-1-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | [libgpiod] bindings: cxx: fix building gpiod::timestamp with clang | expand |
diff --git a/bindings/cxx/gpiodcxx/timestamp.hpp b/bindings/cxx/gpiodcxx/timestamp.hpp index 2eaadd2..5efeb4c 100644 --- a/bindings/cxx/gpiodcxx/timestamp.hpp +++ b/bindings/cxx/gpiodcxx/timestamp.hpp @@ -38,7 +38,8 @@ public: /** * @brief Real-time time_point. */ - using time_point_realtime = ::std::chrono::time_point<::std::chrono::system_clock>; + using time_point_realtime = ::std::chrono::time_point<::std::chrono::system_clock, + ::std::chrono::nanoseconds>; /** * @brief Constructor with implicit conversion from `uint64_t`.