From eb898aefa89beb39849c62c244d1a5700ff058bd Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sat, 22 Jul 2006 15:14:21 +0000 Subject: [PATCH] show how long indexing took git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@424593 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/repository/scheduler/IndexerTask.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/IndexerTask.java b/maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/IndexerTask.java index 724f93e43..9a7306cad 100644 --- a/maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/IndexerTask.java +++ b/maven-repository-core/src/main/java/org/apache/maven/repository/scheduler/IndexerTask.java @@ -92,6 +92,7 @@ public class IndexerTask private void execute( Configuration configuration, File indexPath ) throws TaskExecutionException { + long time = System.currentTimeMillis(); getLogger().info( "Starting repository discovery process" ); try @@ -131,7 +132,8 @@ public class IndexerTask throw new TaskExecutionException( e.getMessage(), e ); } - getLogger().info( "Finished repository indexing process" ); + time = System.currentTimeMillis() - time; + getLogger().info( "Finished repository indexing process in " + time + "ms" ); } public void executeNowIfNeeded()