xref: /openbmc/sdeventplus/src/sdeventplus/types.hpp (revision 55fd87c7e5dcbe33a1b68449cba64302da773b59)
1 #pragma once
2 #include <chrono>
3 #include <cstdint>
4 
5 namespace sdeventplus
6 {
7 
8 // Defined by systemd taking uint64_t usec params
9 using SdEventDuration =
10     std::chrono::duration<uint64_t, std::chrono::microseconds::period>;
11 
12 namespace internal
13 {
14 
15 /* @brief Indicates that the container should not own the underlying
16  *        sd_event primitive */
17 struct NoOwn
18 {};
19 
20 } // namespace internal
21 } // namespace sdeventplus
22