aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-03 12:30:46 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-03 12:30:46 +0800
commit5e59a8e38c9f8992e6ffd9dbbde11e1f873780e1 (patch)
treeda6a32441317706dee212db2ec9e319cc95563c8 /src/base/platform
parentf6c36037edc3f1293f96e84691136c657ca488dc (diff)
downloadcru-5e59a8e38c9f8992e6ffd9dbbde11e1f873780e1.tar.gz
cru-5e59a8e38c9f8992e6ffd9dbbde11e1f873780e1.tar.bz2
cru-5e59a8e38c9f8992e6ffd9dbbde11e1f873780e1.zip
Add unix timer file. Not tested.
Diffstat (limited to 'src/base/platform')
-rw-r--r--src/base/platform/unix/Timer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/platform/unix/Timer.cpp b/src/base/platform/unix/Timer.cpp
new file mode 100644
index 00000000..25264dc8
--- /dev/null
+++ b/src/base/platform/unix/Timer.cpp
@@ -0,0 +1,5 @@
+#include "cru/base/platform/unix/Timer.h"
+
+namespace cru::platform::unix {
+int UnixTimerFile::GetReadFd() const { return this->read_fd_; }
+} // namespace cru::platform::unix