📄 time.1
字号:
.\" SCCSID: @(#)time.1 8.3 3/28/91.TH time 1 .SH Nametime \- time a command.SH Syntax.B time.I command.br.B /bin/time.I command.SH Description.NXR "time command".NXR "command" "timing"The.PN timecommand lets the specified command execute and then outputs the amountof elapsed real time, the time spent in the operating system, and thetime spent in execution of the command. Times are reported in secondsand are written to standard error..PPIf you are using any shell except the C shell,.MS csh 1 ,you can give the.PN timecommand as shown on the first line of the Syntax section. If you areusing the C shell, you must use the.PN timecommand's full pathname as shown on the second line of the Syntaxsection. If you do not use the full pathname,.PN cshwill execute its own built-in.PN timecommand that supplies additional information and uses a differentoutput format..PPThe .PN timecommand can be used to cause a command to be timed no matter how much CPU time it takes. For example:.EX% /bin/time cp /etc/rc /usr/bill/rc 0.1 real 0.0 user 0.0 sys% /bin/time nroff sample1 > sample1.nroff 3.6 real 2.4 user 1.2 sys.EEThis example indicates that the .PN cpcommand used negligible amounts of user.Pn ( user )and system time.Pn ( sys ),and had an elapsed time.Pn ( real )of 1/10 second (0.1). The.PN nroffcommand used 2.4 seconds of user time and 1.2 seconds of system time,and required 3.6 seconds of elapsed time..SH RestrictionsTimes are measured to an accuracy of 1/10 second. Thus, the sum of theuser and system times can be larger than the elapsed time..SH See Alsocsh(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -