R 如何以微秒为单位计算系统时间?
有没有办法改变系统时间的精度R 如何以微秒为单位计算系统时间?,r,performance,R,Performance,有没有办法改变系统时间的精度 system.time(sum(seq(1.0,10^4,1))) 例如: round(system.time(sum(seq(1.0,10^4,1))),digits=6) 为此,应使用软件包microbenchmark 从软件包说明: Package: microbenchmark Title: Sub microsecond accurate timing functions. Description:
system.time(sum(seq(1.0,10^4,1)))
例如:
round(system.time(sum(seq(1.0,10^4,1))),digits=6)
为此,应使用软件包
microbenchmark
从软件包说明:
Package: microbenchmark
Title: Sub microsecond accurate timing functions.
Description: Provides infrastructure to accurately measure and compare the execution time of R expressions.