Clock.c3 fix.

This commit is contained in:
Christoffer Lerno
2024-02-16 21:31:49 +01:00
parent 812dc0c292
commit 1f052da0b9
2 changed files with 4 additions and 3 deletions

View File

@@ -1,11 +1,12 @@
module std::time::clock;
import std::time::os;
fn Clock now()
{
$if $defined(native_clock):
$if $defined(os::native_clock):
return os::native_clock();
$else
return 0;
unreachable("Clock unsupported");
$endif
}