2022-10-21 16:10:00 +02:00
|
|
|
# Various miscellaneous utilities
|
2022-11-29 16:48:05 +01:00
|
|
|
import values;
|
2022-10-21 16:10:00 +02:00
|
|
|
|
2022-10-17 11:28:54 +02:00
|
|
|
|
|
|
|
# Some useful builtins
|
|
|
|
|
|
|
|
fn clock*: float {
|
2022-11-27 13:39:41 +01:00
|
|
|
#pragma[magic: "SysClock64"]
|
2022-10-17 11:28:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-12-01 22:04:10 +01:00
|
|
|
fn print*[T: Number | string | bool | nan | inf](x: T) {
|
|
|
|
#pragma[magic: "print"]
|
2022-10-17 11:28:54 +02:00
|
|
|
}
|