period
time.histogram.period
Applicable universe features
These are features in universe, that have an argument with a type constraint that matches this features type and can therefore be used with it.
equals(T:property.equatable,a T,b T) => bool¶[src]
equals -- feature that compares two values using the equality relation
defined in their type
defined in their type
hash(T:property.hashable,a T) => u64¶[src]
hash of a value
infix !=(T:property.equatable,a T,b T) => bool¶[src]
infix = -- infix operation as shorthand for 'equals'
infix <(T:property.orderable,a T,b T) => bool¶[src]
does this come strictly before other?
infix <=(T:property.partially_orderable,a T,b T) => bool¶[src]
infix <= -- infix operation as shorthand for 'lteq'
infix <>(T:property.orderable,a T,b T) => order¶[src]
three-way comparison between this and other.
result is < 0 if this < other
result is > 0 if this > other
result is = 0 if this = other
result is < 0 if this < other
result is > 0 if this > other
result is = 0 if this = other
infix =(T:property.equatable,a T,b T) => bool¶[src]
infix = -- infix operation as shorthand for 'equals'
infix >(T:property.orderable,a T,b T) => bool¶[src]
does this come strictly after other?
infix >=(T:property.orderable,a T,b T) => bool¶[src]
does this come after other?
infix ∈(T:property.equatable,a T,s container.Set T) => bool¶[src]
is `a` contained in `Set` `s`?
This should usually be called using type inference as in
This should usually be called using type inference as in
infix ∉(T:property.equatable,a T,s container.Set T) => bool¶[src]
is `a` not contained in `Set` `s`?
This should usually be called using type inference as in
This should usually be called using type inference as in
infix ≤(T:property.partially_orderable,a T,b T) => bool¶[src]
infix ≤ -- infix operation as shorthand for 'lteq'
infix ≥(T:property.orderable,a T,b T) => bool¶[src]
does this come after other?
infix ⋄(T:property.orderable,a T,b T) => order¶[src]
three-way comparison between this and other.
result is < 0 if this < other
result is > 0 if this > other
result is = 0 if this = other
result is < 0 if this < other
result is > 0 if this > other
result is = 0 if this = other
lteq(T:property.partially_orderable,a T,b T) => bool¶[src]
lteq -- feature that compares two values using the lteq relation
defined in their type
defined in their type
max(T:property.orderable,a T,b T) => T¶[src]
maximum of two values
memoize(MM:container.Mutable_Map T R,T:property.equatable,R:Any,f Unary R T) => Unary R T¶[src]
memoize `f`.
wraps f so that f will only be called once for every unique input.
The term "memoization" was coined by Donald Michie in 1968 and
is derived from the Latin word "memorandum" ("to be remembered"),
usually truncated as "memo" in American English, and thus carries
the meaning of "turning a function into something to be remembered".
https://en.wikipedia.org/wiki/Memoization
example:
wraps f so that f will only be called once for every unique input.
The term "memoization" was coined by Donald Michie in 1968 and
is derived from the Latin word "memorandum" ("to be remembered"),
usually truncated as "memo" in American English, and thus carries
the meaning of "turning a function into something to be remembered".
https://en.wikipedia.org/wiki/Memoization
example:
min(T:property.orderable,a T,b T) => T¶[src]
minimum of two values
0.099dev (GIT hash 2afc453e6b9c6947b5a90cc7657cba97cfdd0320)
If the period is given it becomes possible to detect drift,
i.e, the actual times are measured relative to the expected
times for given `period`. A cumulative drift, i.e., an actual
period that is slightly longer or shorter in average, will add
up to a significant jitter.
Note that periods like `1/60` cannot be traced accurately, the
rounding error in 16666666ns (or 16666667ns) will add up over
time!
if period is `nil`, this will measure cycle jitter.
See JEDEC Standard No. 65B for definition of period and cycle
jitter.