[jboss-cvs] JBossAS SVN: r95270 - projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/framework.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 21 04:55:06 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-21 04:55:06 -0400 (Wed, 21 Oct 2009)
New Revision: 95270
Modified:
projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/framework/OSGiBootstrap.java
Log:
Resurrect boottime log
Modified: projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/framework/OSGiBootstrap.java
===================================================================
--- projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/framework/OSGiBootstrap.java 2009-10-21 07:49:38 UTC (rev 95269)
+++ projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/framework/OSGiBootstrap.java 2009-10-21 08:55:06 UTC (rev 95270)
@@ -208,6 +208,7 @@
public void run()
{
// Start the framework
+ long beforeStart = System.currentTimeMillis();
try
{
framework.start();
@@ -216,7 +217,10 @@
{
throw new IllegalStateException("Cannot start framework", ex);
}
-
+
+ float diff = (System.currentTimeMillis() - beforeStart) / 1000f;
+ log.info("JBossOSGi Runtime booted in " + diff + "sec");
+
Reader br = new InputStreamReader(System.in);
try
{
More information about the jboss-cvs-commits
mailing list