Initial Dever 0.0.1
This commit is contained in:
commit
81233d098c
1479 files changed
+163782
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# 时钟
|
||||
|
||||
提供系统毫秒时钟和进程内单调纳秒时钟。
|
||||
|
||||
## dever.time.ClockResult
|
||||
|
||||
时钟读数或读取失败原因。
|
||||
|
||||
分支:
|
||||
- `Read(value: Int)`:成功值
|
||||
- `error Failed(message: Text)`:失败原因
|
||||
|
||||
## dever.time.unixMillis
|
||||
|
||||
读取 Unix epoch 起的系统时钟毫秒数。
|
||||
|
||||
## dever.time.monotonicNanos
|
||||
|
||||
读取从本进程首次调用起经过的单调纳秒数。
|
||||
|
||||
## dever.time.clockValue
|
||||
|
||||
取出时钟读数;读取失败时继续传播错误。
|
||||
Reference in new issue
Block a user