Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Canon stephentyrone

View GitHub Profile
View gist:228144648ee250a4ba07
#import <Foundation/Foundation.h>
#import <mach/mach_time.h>
#import <simd/simd.h>
NSTimeInterval SecondsFromMachTimeInterval(uint64_t machTimeInterval) {
static double timeScaleSeconds = 0.0;
if (timeScaleSeconds == 0.0) {
You can’t perform that action at this time.