OxL Reference

method Hlc.counter

The logical counter of the stamp: distinguishes events of the same millisecond.

Example:

oxl✓ checked in CI
fn main() io {
  let a = cluster.now()
  let b = cluster.now()
  print("{a.millis() != b.millis() || a.counter() < b.counter()}")
}
Output
true
pub(api) fn counter() -> i64

Complexity. O(1).

Since. 1.0.0-beta

Returns

i64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/node.oxl:728

See also