ClockProtocol
Undocumented
-
get tick count of clock
Declaration
Objective-C
- (int64_t)ticks;
Swift
optional func ticks() -> Int64
-
return current tick rate or frequency
Declaration
Objective-C
- (uint64_t)ticksPerSecond;
Swift
optional func ticksPerSecond() -> UInt64
-
Get the tick count of this clock, but converted to units of nanoseconds given the current tick rate of this clock
Declaration
Objective-C
- (int64_t)nanoSeconds;
Swift
optional func nanoSeconds() -> Int64
-
Convert the supplied nanosecond to number of ticks given the current tick rate of this clock
Declaration
Objective-C
- (int64_t)nanoSecondsToTicks:(int64_t)nanos;
Swift
optional func nanoSeconds(toTicks nanos: Int64) -> Int64
-
Convert ticks to nano seconds given the tick rate of this clock
Declaration
Objective-C
- (int64_t)ticksToNanoSeconds:(int64_t)ticks;
Swift
optional func ticks(toNanoSeconds ticks: Int64) -> Int64
-
get current time according to this clock
Declaration
Objective-C
- (Float64)time;
Swift
optional func time() -> Float64