未验证 提交 7cf38e46 编写于 作者: Z zengyawen 提交者: Gitee

一致性修改

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 dada253d
......@@ -301,9 +301,9 @@ getStartRealtime(): number
var realtime = process.getStartRealtime();
```
## process.getPastCputime<sup>8+</sup>
## process.getPastCpuTime<sup>8+</sup>
getPastCputime(): number
getPastCpuTime(): number
获取进程启动到当前时间的CPU时间(以毫秒为单位)。
......@@ -318,7 +318,7 @@ getPastCputime(): number
**示例:**
```
var result = process.getPastCputime() ;
var result = process.getPastCpuTime() ;
```
......@@ -379,7 +379,7 @@ var pres = process.getEnvironmentVar("PATH")
## process.runCmd
runCmd(command: string, options?: { timeout : number, killSignal number | string, maxBuffer : number }) : ChildProcess
runCmd(command: string, options?: { timeout : number, killSignal : number | string, maxBuffer : number }) : ChildProcess
通过runcmd可以fork一个新的进程来运行一段shell,并返回ChildProcess对象。
......@@ -574,7 +574,7 @@ var time = process.uptime();
## process.kill
kill(pid: numbersignal: number ): boolean
kill(pid: number, signal: number ): boolean
发送signal到指定的进程,结束指定进程。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册