OxL Справочник OxL
РусскийEnglish

method Histogram.count

Number of observations so far.

Example:

oxl✓ проверяется в CI
use std.obs { metric }

fn main() io {
  let h = metric.histogram("docs_count_seconds")
  print("{h.count()}")
}
Вывод
0.0
pub(api) fn count() -> f64  io

Сложность. O(1).

С версии. 1.0.0-beta

Возвращает

f64

Эффекты

io

Определено в: std/obs/obs.oxl:761

См. также