|
@@ -106,10 +106,15 @@ function parse(source, dest) {
|
|
|
* @param name Nom de l'auteur pour la recherche
|
|
|
*/
|
|
|
function find(source, name) {
|
|
|
- console.info(`Search for ${name}'s co-authors...`);
|
|
|
- timer.start();
|
|
|
+ if (verbose) {
|
|
|
+ console.info(`Search for ${name}'s co-authors...`);
|
|
|
+ timer.start();
|
|
|
+ }
|
|
|
require('./src/finder').in(source).find(name, (result) => {
|
|
|
- timer.stop();
|
|
|
- console.log('res', result, timer.time(), timer.second());
|
|
|
+ if (verbose) {
|
|
|
+ timer.stop();
|
|
|
+ console.info(`${name}'s co-authors find in ${timer.time()}`);
|
|
|
+ }
|
|
|
+ console.log('res', result);
|
|
|
});
|
|
|
}
|