Skip to content

Commit

Permalink
[Optimize] 任务结束的时候输出时间
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualSJ committed Apr 3, 2024
1 parent f1119ed commit 9415dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itharbors/workflow",
"version": "0.2.6",
"version": "0.2.7",
"description": "",
"main": "./dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion source/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export async function executeTask(taskNameList: string[]) {
manager.start();
manager.addListener('finish', () => {
const taskEndTime = Date.now();
console.log(gray(`The "${taskName}" task is completed in ${formatTime(taskEndTime - taskStartTime)}`));
console.log(gray(`The "${taskName}" task is completed in ${formatTime(taskEndTime - taskStartTime)} ${taskEndTime.toLocaleString()}`));
resolve(undefined);
});
});
Expand Down

0 comments on commit 9415dae

Please sign in to comment.