소스 검색

Ajout timer

Loquicom 5 년 전
부모
커밋
f7182e2817
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      extract.js

+ 9 - 0
extract.js

@@ -49,5 +49,14 @@ else {
 }
 
 function extract(source, name) {
+    name = name.trim();
+    if (verbose) {
+        console.info(`Search for ${name}'s co-authors...`);
+        timer.start();
+    }
     //TODO Extraction
+    if (verbose) {
+        timer.stop();
+        console.info(`${name}'s co-authors find in ${timer.time()}`);
+    }
 }