It's a similar situation on iOS, where new developers sometimes use (in Objective-C) `[[NSDate date] timeIntervalSince1970]` which is natural, but wrong. NSDate draws from the network synchronized clock and will occasionally hiccup when re-synching it against the network, among other reasons.
If you're looking at measuring relative timing (for example for games or animation), you should instead use `double currentTime = CACurrentMediaTime();` That's the correct way.
We're looking for software engineers and developers! Help build the most professional Bitcoin exchange.
• iOS, backend, frontend and full-stack engineers
Join Kraken and enjoy the first truly professional trading platform for Bitcoin and other math-based currencies (cryptocurrencies). We have robust technology, rock-solid security, and a proactive approach to regulatory compliance.
Hold your own keys yourself, possibly with the addition of multi-sig service(s) to make this safer and more convenient. That is undoubtedly the long-term vision of bitcoin, and it's quite different from banks/USD.
If you're looking at measuring relative timing (for example for games or animation), you should instead use `double currentTime = CACurrentMediaTime();` That's the correct way.