diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/trygvis/esper/testing/object/ObjectUtil.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/object/ObjectUtil.java b/src/main/java/io/trygvis/esper/testing/object/ObjectUtil.java index d70e074..0e9912b 100644 --- a/src/main/java/io/trygvis/esper/testing/object/ObjectUtil.java +++ b/src/main/java/io/trygvis/esper/testing/object/ObjectUtil.java @@ -7,6 +7,8 @@ import java.io.*; import java.sql.*; import java.util.concurrent.*; +import static java.lang.System.currentTimeMillis; + public class ObjectUtil { public static <A extends TransactionalActor> ActorRef<A> threadedActor(String threadName, long delay, DataSource dataSource, String name, A actor) { @@ -42,7 +44,10 @@ public class ObjectUtil { } actor.act(c); + long start = currentTimeMillis(); c.commit(); + long end = currentTimeMillis(); + logger.debug("COMMIT performed in in " + (end - start) + "ms."); } catch(SQLException e) { c.rollback(); |