通常,要了解代码中发生的情况,您需要高精度时间来分析您的应用程序或出于其他原因。显然,现在() https://stackoverflow.com/questions/32407509/how-to-get-the-milliseconds-from-now-in-julia-0-4-pre不提供此功能,但是是否有另一种相当简单的方法可以使“现在”达到毫秒精度?
来自文档:
help?> time
time()
Get the system time in seconds since the epoch, with fairly high (typically, microsecond) resolution.
这样你就可以获得当前的DateTime
使用那个。
但如果你只想要相对时间,例如分析,你可以使用tic()
and toq()
, or time_ns()
为了真正的高精度,或者只是time
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)