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

Like std::time::Instant but for rdtsc.

Trait Implementations

Get a timestamp.

Set a scaling factor, which can be used to convert a difference of timestamps to seconds.

Get the duration from earlier to self as a std::time::Duration. Read more

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

Performs the conversion.

Performs the conversion.

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.