UNPKG
rdtool
Version:
latest (1.0.5)
1.0.5
1.0.4
A simple Node.js-based remote deployment tool that makes deployments easier with config files.
rdtool
/
src
/
exec-plugins
/
print-exec-time.js
11 lines
(8 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
{ formatMS } =
require
(
"../tools"
);
function
exec
(
client, config, command
) {
return
`【
${config.startTimeTip}
】程序段执行时间:
${formatMS(
Date
.now() - config.startTime)}
`
; }
module
.
exports
= {
name
:
"print-exec-time"
, exec, };