Added migration timer
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/MigrationProcessor.java b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/MigrationProcessor.java index 0357fae..22f5a56 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/MigrationProcessor.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/MigrationProcessor.java
@@ -131,6 +131,8 @@ logger.info("=========== START: Migrating AMALTHEA models from : {0} to {1} ========== ", currentModelVersion, outputModelVersion); + long startTime = System.nanoTime(); + // build caches // build up the cache for the current file set @@ -153,6 +155,9 @@ postProcessor.process(fileDocumentMapping); } + float elapsedTime = (System.nanoTime() - startTime) / 1000000000; // in seconds + logger.info("Migration took {0,number,#.###} seconds", elapsedTime); + logger.info("=========== END: Migrating AMALTHEA models from : {0} to {1} =========== \n\r", currentModelVersion, outputModelVersion); if (currentModelVersion.equals(outputModelVersion)) {