Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Time in datafusion::physical_plan::metrics - Rust
[go: Go Back, main page]

pub struct Time { /* private fields */ }
Expand description

Measure a potentially non contiguous duration of time

Implementations

Create a new Time wrapper suitable for recording elapsed times for operations.

Add elapsed nanoseconds since startto self

Add duration of time to self

Note: this will always increment the recorded time by at least 1 nanosecond to distinguish between the scenario of no values recorded, in which case the value will be 0, and no measurable amount of time having passed, in which case the value will be small but not 0.

This is based on the assumption that the timing logic in most cases is likely to take at least a nanosecond, and so this is reasonable mechanism to avoid ambiguity, especially on systems with low-resolution monotonic clocks

Add the number of nanoseconds of other Time to self

return a scoped guard that adds the amount of time elapsed between its creation and its drop or call to stop to the underlying metric.

Get the number of nanoseconds record by this Time metric

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.