Instance Methodnmggithub.kass 3.2.4MachCore
setAttribute(_:to:)
Sets the value of a clock attribute.
- macOS
- obsoleted
func setAttribute<DataType>(_ attribute: Mach.ClockAttribute, to value: DataType) throws where DataType : BitwiseCopyable
Sets the value of a clock attribute.
func setAttribute<DataType>(_ attribute: Mach.ClockAttribute, to value: DataType) throws where DataType : BitwiseCopyable
s8MachCore0A0V12ClockControlC12setAttribute_2toyAC0cF0V_xtKs15BitwiseCopyableRzlF
What are these?20O4M
import MachCore
The core module for interacting with the Mach kernel.
class ClockControl
A clock control port.
struct Mach
The Mach kernel.
struct ClockAttribute
A type of clock attribute.
protocol BitwiseCopyable
convenience init(_ type: Mach.ClockType, in host: Mach.Host) throws
Obtains the control port for the given clock.
func setTime(_ time: mach_timespec_t) throws
Sets the time of the clock.