_AutoOps

class ref _AutoOps

Constructors

create

new ref create(
  bench_time: U64 val,
  max_ops: U64 val)
: _AutoOps ref^

Parameters

  • bench_time: U64 val
  • max_ops: U64 val

Returns


Public Functions

apply

fun box apply(
  ops: U64 val,
  time: U64 val,
  nspo: U64 val)
: (U64 val | None val)

Parameters

Returns


Private Functions

_round_down_10

Round down to the nearest power of 10.

fun box _round_down_10(
  x: U64 val)
: U64 val

Parameters

Returns


_round_up

Round x up to a number of the form [1ex, 2ex, 3ex, 5ex].

fun box _round_up(
  x: U64 val)
: U64 val

Parameters

Returns