diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-02-07 00:17:17 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-02-07 00:20:29 -0800 |
commit | 74f1512ff113cf35706af57e9d40c78b7d77f49e (patch) | |
tree | 7c7acb23e1a26387117e464ec6ab01126dbc8ae8 /402time.mu | |
parent | 6c4c25555c7df0d78ad41c813345f63cae1819de (diff) | |
download | mu-74f1512ff113cf35706af57e9d40c78b7d77f49e.tar.gz |
7690
Convert comments about magic constants into metadata.
Diffstat (limited to '402time.mu')
-rw-r--r-- | 402time.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/402time.mu b/402time.mu index 5407b6b7..fdb98c81 100644 --- a/402time.mu +++ b/402time.mu @@ -7,7 +7,7 @@ type timespec { # TODO: y2038 fn time -> _/eax: int { var t: timespec - var clock/ebx: int <- copy 0 # CLOCK_MONOTONIC + var clock/ebx: int <- copy 0/CLOCK_MONOTONIC var t-addr/ecx: (addr timespec) <- address t syscall_clock_gettime var t-secs-addr/ecx: (addr int) <- get t-addr, tv_sec @@ -18,7 +18,7 @@ fn time -> _/eax: int { # return time in nanoseconds since epoch fn ntime -> _/eax: int { var t: timespec - var clock/ebx: int <- copy 0 # CLOCK_MONOTONIC + var clock/ebx: int <- copy 0/CLOCK_MONOTONIC var t-addr/ecx: (addr timespec) <- address t syscall_clock_gettime var t-nsecs-addr/ecx: (addr int) <- get t-addr, tv_nsec |