我想在我的应用程序中按时运行.我首先考虑的是系统uptime.由于这看起来很难实现,我很好奇是否有一种简单有效的方法来获取应用程序的运行时间?
uptime
以毫秒或时间间隔更好的时间.
macos cocoa systemtime
cocoa ×1
macos ×1
systemtime ×1