4
在ARKit,ARFrame.timestamp是TimeInterval
帶有數值,ARKit:ARFrame.timestamp代表什麼?
185726.884258291
185726.91759425
185726.950930291
...
我想獲得這些值的UNIX時間戳,但他們並不眼熟。這些數字代表什麼?
在ARKit,ARFrame.timestamp是TimeInterval
帶有數值,ARKit:ARFrame.timestamp代表什麼?
185726.884258291
185726.91759425
185726.950930291
...
我想獲得這些值的UNIX時間戳,但他們並不眼熟。這些數字代表什麼?
這些數字代表在框架已被抓獲的那一刻正常運行時間,看到自己通過調用
NSTimeInterval systemUptime = [[NSProcessInfo processInfo] systemUptime];
Methods and thoughts about converting it to a Unix Timestamp。
如果你正在尋找一個UNIX時間戳比這裏是答案https://stackoverflow.com/a/7583042/3641812 – ricardopereira
@ricardopereira你是說它是從CPU啓動時間的某種偏移?如果你想添加一個答案的細節,我會獎勵你點,如果它看起來不錯。 –