use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MXMetric")]
pub struct MXCPUMetric;
#[cfg(feature = "MXMetric")]
unsafe impl ClassType for MXCPUMetric {
#[inherits(NSObject)]
type Super = MXMetric;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MXMetric")]
unsafe impl NSCoding for MXCPUMetric {}
#[cfg(feature = "MXMetric")]
unsafe impl NSObjectProtocol for MXCPUMetric {}
#[cfg(feature = "MXMetric")]
unsafe impl NSSecureCoding for MXCPUMetric {}
extern_methods!(
#[cfg(feature = "MXMetric")]
unsafe impl MXCPUMetric {
#[method_id(@__retain_semantics Other cumulativeCPUTime)]
pub unsafe fn cumulativeCPUTime(&self) -> Id<NSMeasurement<NSUnitDuration>>;
#[method_id(@__retain_semantics Other cumulativeCPUInstructions)]
pub unsafe fn cumulativeCPUInstructions(&self) -> Id<NSMeasurement<NSUnit>>;
}
);
extern_methods!(
#[cfg(feature = "MXMetric")]
unsafe impl MXCPUMetric {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);