lap

Package Version Hex Docs

gleam add --dev lap
import lap
import gleam/io

pub fn main() {
  let data = lap.start_in_milliseconds("1")

  // Some work

  let data = data |> lap.time("2")

  // Some work

  data |> lap.time("3") |> lap.intervals |> io.debug
  // [#("1", "2", 10), #("2", "3", 30)]
}
Search Document