fn now
Hybrid logical clock stamp of a new event (§12.6, §17.3).
Example:
use std.cluster
fn main() io {
let a = cluster.now()
let b = cluster.now()
print(a < b)
}Вывод
true
pub(api) fn now() -> HlcПотокобезопасность. safe to call from any task; stamps taken on one node are strictly increasing.
С версии. 1.0.0-beta
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/cluster/cluster.oxl:143