Colin Davidson
afaa5f2deb
add null-impl for tsc_frequency for alt-platforms
2023-03-04 22:40:14 -08:00
Colin Davidson
c6f463b8c9
shuffle tsc around a little
2023-02-22 12:28:24 -08:00
Colin Davidson
8e5e43f335
add sleep-fallback and invariant check
2023-02-21 17:48:49 -08:00
Colin Davidson
91dccf8d62
more function name changes
2023-02-21 06:46:36 -08:00
Colin Davidson
1fc3a25f47
block all x86 tsc functions in when block
2023-02-21 06:28:55 -08:00
Colin Davidson
7322b63991
adjust func names
2023-02-21 06:22:19 -08:00
Colin Davidson
f860b09065
use the libc call on darwin so sysctlbyname works
2023-02-21 05:38:07 -08:00
Colin Davidson
45b742be23
sort out units to make things happier
2023-02-19 20:50:30 -08:00
Colin Davidson
d325ee4b91
more typo. yay.
2023-02-19 20:45:56 -08:00
Colin Davidson
87d6910bb8
intrinsics typo
2023-02-19 20:44:49 -08:00
Colin Davidson
9c9300ed58
derp. raw-syscalls
2023-02-19 20:44:00 -08:00
Colin Davidson
e559cf32fe
oops, add intrinsics import
2023-02-19 20:39:36 -08:00
Colin Davidson
fb735883be
add a tsc frequency get for windows
2023-02-19 20:33:48 -08:00
Colin Davidson
6a2ef1f4f3
add osx support
2023-02-19 20:23:35 -08:00
Colin Davidson
051c9cb564
begin adding tsc frequency getters
2023-02-19 20:08:11 -08:00
JopStro
dad10ef800
create _yeild stub for wasi_wasm32 target to avoid compile error
2022-10-31 21:22:55 +00:00
gingerBill
7bcde35651
Heavily improve time handling on Windows for time.now() and os.File_Info
2022-10-26 16:05:49 +01:00
gingerBill
fb49841b1d
Remove strings dependency from core:sys/windows
2022-06-02 13:02:16 +01:00
gingerBill
577fa2d29b
Update time procedures for js targets
2022-05-21 16:35:06 +01:00
gingerBill
f002857edc
Clean up core:time to be consistent across all platforms
2022-05-12 15:47:24 +01:00
gingerBill
6f20b5bb59
Add mock for _yield
2022-05-06 10:59:55 +01:00
Jeroen van Rijn
91037766d2
Update time.odin
...
Add caveats.
2022-04-16 16:48:08 +02:00
hikari
8bf73950fa
time: remove unnecessary yield
2022-04-16 14:36:48 +03:00
hikari
4f4793817c
time: fix unix build
2022-04-16 14:35:49 +03:00
hikari
0a0440a6e8
time: yield accurate_sleep instead of relaxing the cpu
2022-04-16 14:08:37 +03:00
hikari
b05fbaacda
time: add accurate sleep procedure
2022-04-16 00:32:17 +03:00
Sébastien Marie
5676c9e7eb
initial OpenBSD support
2022-02-25 08:49:25 +00:00
gingerBill
3d7d347192
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
2022-01-20 19:56:05 +00:00
gingerBill
518460af66
Begin work in semi-standardized js_wasm32 target
2021-11-07 19:56:01 +00:00
Phil H
e4ce017183
better naming conventions for stopwatch procedures + fields
2021-10-28 14:08:21 -07:00
Phil
bbccf9ddbf
Add clock overloads for Duration and Stopwatch
2021-10-28 14:08:21 -07:00
Phil
a8425cfb47
Add a stopwatch to time.odin
2021-10-28 14:08:21 -07:00
gingerBill
0d258e8b55
Make many package time procedures use "contextless" calling convention
2021-10-11 20:08:38 +01:00
Jeroen van Rijn
05e303e9a0
Make QPC thread local again.
2021-09-09 16:16:06 +02:00
Jeroen van Rijn
637685316d
Add xxhash tests to CI.
2021-09-09 16:01:44 +02:00
Jeroen van Rijn
f16e98b074
Add xxhash benchmark.
2021-09-09 15:26:57 +02:00
gingerBill
ca33cb990b
Strip semicolons in core which were missing
2021-09-08 13:12:38 +01:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
f0437a4242
Enforce core:builtin and core:intrinsics for imports
2021-08-21 13:44:16 +01:00
Jeroen van Rijn
2451014b6e
datetime_to_time's ok should default to true.
2021-05-02 13:23:57 +02:00
gingerBill
72aa0e6e38
Replace many foreign llvm calls with intrinsics
2021-04-25 20:22:26 +01:00
Jeroen van Rijn
06c5a7fb3e
Correct overflowed months.
2021-03-23 18:49:50 +01:00
Jeroen van Rijn
781f784375
Add core:datetime_to_time
...
datetime_to_time takes separate parameters for date and time values and returns a time.Time and an `ok` bool.
If the values are out of range, they're considered modulo and ok will be set to false.
2021-03-23 18:41:40 +01:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
nakst
7b4ddd9b18
update essence API header
2021-02-26 14:46:38 +00:00
gingerBill
aa93305015
Replace usage of inline proc with #force_inline proc in the core library
2021-02-23 16:14:47 +00:00
gingerBill
aed63a6e8b
Update package reflect
2021-01-27 15:27:59 +00:00
gingerBill
9e8c46b8de
Add time.Tick for performance related timings
2021-01-09 01:08:16 +00:00
Platin21
6b83159b06
Switched to else instead of not equal
2020-09-27 22:17:35 +03:00
Platin21
f7e40b8572
Adds when statement for framework include
2020-09-27 22:08:33 +03:00