mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Clock.c3 fix.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user