Introduce OSGi standard runtime
[lgpl/argeo-commons.git] / osgi / runtime / org.argeo.osgi.boot / src / main / java / org / argeo / slc / osgiboot / OsgiBoot.java
index d54fa88993e031f7f146e392454a46dcc9622dc3..17547f24408cc04b65fa285844da42a6c79ea7b8 100644 (file)
@@ -118,6 +118,7 @@ public class OsgiBoot {
        }
 
        public void bootstrap() {
+               long begin = System.currentTimeMillis();
                System.out.println();
                info("OSGi bootstrap starting...");
                info("Writable data directory : "
@@ -128,7 +129,10 @@ public class OsgiBoot {
                installUrls(getModulesUrls());
                checkUnresolved();
                startBundles();
-               info("OSGi bootstrap completed");
+               long duration = System.currentTimeMillis() - begin;
+               info("OSGi bootstra completed in "
+                               + Math.round(((double) duration) / 1000) + "s (" + duration
+                               + "ms), " + bundleContext.getBundles().length + " bundles");
                System.out.println();
        }