mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Merge pull request #5663 from greenya/master
[core:time] time_js: tick_now(): Use f64 (was f32) as a return type of odin_env.tick_now()
This commit is contained in:
@@ -24,7 +24,7 @@ _sleep :: proc "contextless" (d: Duration) {
|
||||
|
||||
_tick_now :: proc "contextless" () -> Tick {
|
||||
foreign odin_env {
|
||||
tick_now :: proc "contextless" () -> f32 ---
|
||||
tick_now :: proc "contextless" () -> f64 ---
|
||||
}
|
||||
return Tick{i64(tick_now()*1e6)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user