[][src]Struct qasmsim::ExecutionTimes

pub struct ExecutionTimes { /* fields omitted */ }

Register the milliseconds spent in parsing the program and simulating.

Implementations

impl ExecutionTimes[src]

pub fn new(parsing_time: u128, simulation_time: u128) -> Self[src]

Create new times statistics. Parameters are expressed in milliseconds.

pub fn simulation_time(&self) -> u128[src]

Return the time spent in parsing the program and converting it to an AST.

pub fn parsing_time(&self) -> u128[src]

Return the time spent in simulating the program.

Trait Implementations

impl Clone for ExecutionTimes[src]

impl Debug for ExecutionTimes[src]

impl Eq for ExecutionTimes[src]

impl<'_> From<&'_ [u128; 2]> for ExecutionTimes[src]

impl From<(u128, u128)> for ExecutionTimes[src]

impl Hash for ExecutionTimes[src]

impl PartialEq<ExecutionTimes> for ExecutionTimes[src]

impl StructuralEq for ExecutionTimes[src]

impl StructuralPartialEq for ExecutionTimes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,