Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
frascati
frascati
Commits
ef29b01b
Commit
ef29b01b
authored
Mar 18, 2009
by
Nicolas Dolet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Get time from System class
- Typos
parent
bae8d888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
intents/bench/pom.xml
intents/bench/pom.xml
+5
-1
intents/bench/src/main/java/org/ow2/frascati/intent/bench/BenchIntentHandler.java
...ava/org/ow2/frascati/intent/bench/BenchIntentHandler.java
+3
-4
No files found.
intents/bench/pom.xml
View file @
ef29b01b
...
...
@@ -2,7 +2,7 @@
<!--
* 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
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -17,6 +17,10 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* 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"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
...
...
intents/bench/src/main/java/org/ow2/frascati/intent/bench/BenchIntentHandler.java
View file @
ef29b01b
/***
* 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
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -23,7 +23,6 @@
*/
package
org.ow2.frascati.intent.bench
;
import
java.util.GregorianCalendar
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -88,10 +87,10 @@ public class BenchIntentHandler
components
.
put
(
c
,
new
Long
(
0
));
}
// Get time before proceed
long
before
=
GregorianCalendar
.
getInstance
().
ge
tTime
In
Millis
();
long
before
=
System
.
curren
tTimeMillis
();
;
ret
=
ijp
.
proceed
();
// Get time after proceed
long
after
=
GregorianCalendar
.
getInstance
().
ge
tTime
In
Millis
();
long
after
=
System
.
curren
tTimeMillis
();
;
// increment elapsed time
long
elapsed
=
after
-
before
;
Long
newBench
=
components
.
get
(
c
)
+
Long
.
valueOf
(
elapsed
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment