gingerBill
44ea82f845
Clean up usage of using throughout core and vendor
2023-07-31 11:46:40 +01:00
Laytan Laats
c47dcbbe2f
fix spacing
2023-05-06 19:39:39 +02:00
Laytan Laats
956ffdf654
add time.weekday proc
2023-05-05 20:55:59 +02: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
f002857edc
Clean up core:time to be consistent across all platforms
2022-05-12 15:47:24 +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
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
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
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
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
gingerBill
8cc5cd1494
Add package path/filepath; Add os.stat for windows (TODO: unix)
2020-09-25 20:20:53 +01:00
gingerBill
fc4fdd588e
Remove usage of do in core library
2020-09-23 17:17:14 +01:00
gingerBill
1f2f3cb315
Fix #712
2020-08-26 22:40:03 +01:00
gingerBill
509e8b512f
Add time.read_cycle_counter
2020-06-22 15:54:19 +01:00
gingerBill
c9d3b95b0d
Fix time.now
2020-06-19 11:35:43 +01:00
gingerBill
e92fdb4a99
x if cond else y and x when cond else y expressions
2020-03-05 20:34:30 +00:00
thebirk
ca2220214e
Added diff() to core:time.
2019-01-06 19:40:57 +01:00
gingerBill
3bf01c8498
package time (windows only at the moment)
2018-12-08 14:32:00 +00:00