Function simics::api::base::time::cycle_count

source ·
pub fn cycle_count(obj: *mut ConfObject) -> Result<Cycles>
Expand description

cycle_count returns the current simulated clock cycle count at obj.

If obj is a cycle counter implementing either the cycle_event interface or the cycle interface, then the returned count is the number of elapsed cycles according to that object. If obj is not a cycle counter, then the default clock associated with the object is queried for its cycle count.

§Arguments

  • obj - The object to get a cycle count for

§Return Value

The number of cycles for the object

§Context

Cell Context