Commit ef29b01b authored by Nicolas Dolet's avatar Nicolas Dolet
Browse files

- Get time from System class

- Typos
parent bae8d888
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
* OW2 FraSCAti - Bench Intent. * OW2 FraSCAti - Bench Intent.
* *
* Copyright (c) 2008-2009 INRIA, USTL * Copyright (c) 2009 INRIA, USTL
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Nicolas Dolet
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
......
/*** /***
* OW2 FraSCAti Bench intent * OW2 FraSCAti Bench intent
* Copyright (C) 2008-2009 INRIA, USTL * Copyright (C) 2009 INRIA, USTL
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
*/ */
package org.ow2.frascati.intent.bench; package org.ow2.frascati.intent.bench;
import java.util.GregorianCalendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -88,10 +87,10 @@ public class BenchIntentHandler ...@@ -88,10 +87,10 @@ public class BenchIntentHandler
components.put(c, new Long(0)); components.put(c, new Long(0));
} }
// Get time before proceed // Get time before proceed
long before = GregorianCalendar.getInstance().getTimeInMillis(); long before = System.currentTimeMillis();;
ret = ijp.proceed(); ret = ijp.proceed();
// Get time after proceed // Get time after proceed
long after = GregorianCalendar.getInstance().getTimeInMillis(); long after = System.currentTimeMillis();;
// increment elapsed time // increment elapsed time
long elapsed = after - before; long elapsed = after - before;
Long newBench = components.get(c) + Long.valueOf(elapsed); Long newBench = components.get(c) + Long.valueOf(elapsed);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment