summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-06 03:32:33 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-06 03:32:33 +0200
commitec667855740993a1c63eb2d2c64b4fc29d95a003 (patch)
treec23456053d294d30e6d0f4be518e8f2583f04b3f
parent50257aaab2fe845e515058fb42e1aaa7f2e6fae8 (diff)
downloadkit-ec667855740993a1c63eb2d2c64b4fc29d95a003.zip
Update README
-rw-r--r--README1
-rw-r--r--source/kit_test/shared.inl.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/README b/README
index e15bd1c..bb8ef18 100644
--- a/README
+++ b/README
@@ -13,6 +13,7 @@ Features
- Big integer math
- SHA-256
- System
+ - Time
- Atomics
- Condition variables
- Mutual exclusion
diff --git a/source/kit_test/shared.inl.h b/source/kit_test/shared.inl.h
index b96897c..f000786 100644
--- a/source/kit_test/shared.inl.h
+++ b/source/kit_test/shared.inl.h
@@ -25,6 +25,7 @@
static int timespec_get(struct timespec *ts, int base) {
if (ts == NULL || base != TIME_UTC)
return 0;
+
FILETIME ft;
ULARGE_INTEGER date;
LONGLONG ticks;
@@ -36,6 +37,7 @@ static int timespec_get(struct timespec *ts, int base) {
_TIMESPEC_IMPL_UNIX_EPOCH_IN_TICKS);
ts->tv_sec = ticks / _TIMESPEC_IMPL_TICKS_PER_SECONDS;
ts->tv_nsec = (ticks % _TIMESPEC_IMPL_TICKS_PER_SECONDS) * 100;
+
return base;
}
# endif