From b1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 31 Jul 2024 13:36:53 -0400 Subject: add clock --- euler/include/ctime | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 euler/include/ctime (limited to 'euler/include/ctime') diff --git a/euler/include/ctime b/euler/include/ctime new file mode 100644 index 0000000..9cf1b1f --- /dev/null +++ b/euler/include/ctime @@ -0,0 +1,20 @@ +#pragma once + +#include + +typedef uint64_t time_t; + +struct tm { + int tm_sec; + int tm_min; + int tm_hour; + int tm_mday; + int tm_mon; + int tm_year; + int tm_wday; + int tm_yday; + int tm_isdst; +}; + +time_t time(time_t *arg); +tm *gmtime(const time_t *time); -- cgit v1.2.3