setTimeLimit(base)
setTimeLimit()所属R语言包:base
Set CPU and/or Elapsed Time Limits
设置CPU和/或逝去的时间限制
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functions to set CPU and/or elapsed time limits for top-level computations or the current session.
功能来设置CPU和/或经过顶级的计算或本届会议的时间限制。
用法----------Usage----------
setTimeLimit(cpu = Inf, elapsed = Inf, transient = FALSE)
setSessionTimeLimit(cpu = Inf, elapsed = Inf)
参数----------Arguments----------
参数:cpu
double. Limit on total cpu time.
翻一番。总的CPU时间限制。
参数:elapsed
double. Limit on elapsed time.
翻一番。经过时间的限制。
参数:transient
logical. If TRUE, the limits apply only to the rest of the current computation.
逻辑。如果TRUE,限制仅适用于当前计算的截断。
Details
详情----------Details----------
setTimeLimit sets limits which apply to each top-level computation, that is a command line (including any continuation lines) entered at the console or from a file. If it is called from within a computation the limits apply to the rest of the computation and (unless transient = TRUE) to subsequent top-level computations.
setTimeLimit设置限制,适用于每个顶级水平计算,即在控制台上或从一个文件中输入的命令行(包括任何续行)。如果它是从内计算所谓的限制适用于其余的计算(除非transient = TRUE)随后的顶级计算。
setSessionTimeLimit sets limits for the rest of the session. Once a session limit is reached it is reset to Inf.
setSessionTimeLimit设置限制会话的其余部分。一旦达到会话限制,这是复位Inf。
Setting any limit has a small overhead – well under 1% on the systems measured.
设置任何限制,有一个小的开销 - 远低于1%的系统测量。
Time limits are checked whenever a user interrupt could occur. This will happen frequently in R code and during Sys.sleep, but only at points in compiled C and Fortran code identified by the code author.
检查的时限是用户中断时可能发生。会出现这种情况经常在R代码,并在Sys.sleep,但只有在编译的C和Fortran代码,代码的作者所确定的点。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|