Struct rapier2d::counters::Counters [−][src]
pub struct Counters { pub enabled: bool, pub step_time: Timer, pub custom: Timer, pub stages: StagesCounters, pub cd: CollisionDetectionCounters, pub solver: SolverCounters, pub ccd: CCDCounters, }
Expand description
Aggregation of all the performances counters tracked by nphysics.
Fields
enabled: bool
Whether thi counter is enabled or not.
step_time: Timer
Timer for a whole timestep.
custom: Timer
Timer used for debugging.
stages: StagesCounters
Counters of every satge of one time step.
cd: CollisionDetectionCounters
Counters of the collision-detection stage.
solver: SolverCounters
Counters of the constraints resolution and force computation stage.
ccd: CCDCounters
Counters for the CCD resolution stage.
Implementations
Notify that the time-step has started.
Notfy that the time-step has finished.
Notify that the custom operation has started.
Notfy that the custom operation has finished.
Total time of a custom event.
Set the number of constraints generated.
Set the number of contacts generated.
Set the number of contact pairs generated.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Start this timer.
Stop this timer.
Gets the time elapsed for this timer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Counters
impl UnwindSafe for Counters
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.