diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md index fa563d5a494b2c370950822e27c6397372f53669..01308446e852763d8d4846fb6d9e6d12ea42a69a 100644 --- a/en/application-dev/reference/apis/js-apis-process.md +++ b/en/application-dev/reference/apis/js-apis-process.md @@ -262,7 +262,7 @@ var pres = process.getThreadPriority(tid); ## process.getStartRealtime8+ -getStartRealtime() :number +getStartRealtime(): number Obtains the duration, in milliseconds, from the time the system starts to the time the process starts. @@ -280,7 +280,7 @@ var realtime = process.getStartRealtime(); ## process.getPastCputime8+ -getPastCputime() :number +getPastCputime(): number Obtains the CPU time (in milliseconds) from the time the process starts to the current time. diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md index 902e9adeedc9de943a117461ccfcae4e6bfa1acb..12336ccae640fdc658c29530fbe210f1df643f7d 100644 --- a/en/application-dev/reference/apis/js-apis-util.md +++ b/en/application-dev/reference/apis/js-apis-util.md @@ -166,7 +166,7 @@ A constructor used to create a **TextDecoder** object. ### decode -decode(input: Unit8Array, options?:{stream?:false}):string +decode(input: Unit8Array, options?:{stream?:false}): string Decodes the input content. diff --git a/zh-cn/application-dev/reference/apis/js-apis-process.md b/zh-cn/application-dev/reference/apis/js-apis-process.md index 14879cd9d6a3d8d548dc4e88b5e33392d60c4799..e255e9ab3b02e7c1abfb8b72112ebce227d06f9e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-process.md +++ b/zh-cn/application-dev/reference/apis/js-apis-process.md @@ -262,7 +262,7 @@ var pres = process.getThreadPriority(tid); ## process.getStartRealtime8+ -getStartRealtime() :number +getStartRealtime(): number 获取从系统启动到进程启动所经过的实时时间(以毫秒为单位)。 @@ -280,7 +280,7 @@ var realtime = process.getStartRealtime(); ## process.getPastCputime8+ -getPastCputime() :number +getPastCputime(): number 获取进程启动到当前时间的CPU时间(以毫秒为单位)。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md index 759d5e288360d4cb2ffb9b43e3b6dc17d2c7d441..82619f2368c8590f5317616f68d6c82424b391e5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-util.md +++ b/zh-cn/application-dev/reference/apis/js-apis-util.md @@ -174,7 +174,7 @@ TextDecoder的构造函数。 ### decode -decode(input: Unit8Array, options?:{stream?:false}):string +decode(input: Unit8Array, options?:{stream?:false}): string 通过输入参数解码后输出对应文本。