#[repr(C)]pub struct BelaCpuData {
pub count: c_uint,
pub currentCount: c_uint,
pub busy: c_ulonglong,
pub total: c_ulonglong,
pub tic: timespec,
pub toc: timespec,
pub percentage: f32,
}Fields§
§count: c_uint< Number of samples (tic/toc pairs) in a acquisition cycle. Use 0 to disable.
currentCount: c_uint< Number of tics in current acquisition cycle
busy: c_ulonglong< Total CPU time spent being busy (between tic and toc) during the current acquisition cycle
total: c_ulonglong< Total CPU time (between tic and previous tic) during the current acquisition cycle
tic: timespec< Time of last tic
toc: timespec< Time of last toc
percentage: f32< Average CPU usage during previous acquisition cycle
Trait Implementations§
Source§impl Clone for BelaCpuData
impl Clone for BelaCpuData
Source§fn clone(&self) -> BelaCpuData
fn clone(&self) -> BelaCpuData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BelaCpuData
Source§impl Debug for BelaCpuData
impl Debug for BelaCpuData
Source§impl Default for BelaCpuData
impl Default for BelaCpuData
Source§fn default() -> BelaCpuData
fn default() -> BelaCpuData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BelaCpuData
impl RefUnwindSafe for BelaCpuData
impl Send for BelaCpuData
impl Sync for BelaCpuData
impl Unpin for BelaCpuData
impl UnsafeUnpin for BelaCpuData
impl UnwindSafe for BelaCpuData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more