Static Propertynmggithub.kass 3.2.4MachCore
absoluteTime
The current absolute time (in ticks) for the purposes of using timers.
static var absoluteTime: UInt64 { get }
The current absolute time (in ticks) for the purposes of using timers.
static var absoluteTime: UInt64 { get }
import MachCore
The core module for interacting with the Mach kernel.
class Timer
A timer.
struct Mach
The Mach kernel.
@frozen struct UInt64
A 64-bit unsigned integer value type.
static func allocate() -> Self
Allocates a new timer port.
func arm(expireTime: UInt64) throws
Arms the timer to expire at a given time.
func arm(expireTime: UInt64, flags: Mach.TimerArmFlags = [], leeway: UInt64 = 0) throws
Arms the timer to expire at a given time.
func cancel() throws -> UInt64
Cancels the timer and returns the time it was armed to expire at.
override func destroy() throws
Destroys the timer.