Use library method instead of custom computation
authorGeorgios Gousios <gousiosg@gmail.com>
Thu, 1 Dec 2011 08:02:34 +0000 (10:02 +0200)
committerGeorgios Gousios <gousiosg@gmail.com>
Thu, 1 Dec 2011 08:02:34 +0000 (10:02 +0200)
logic/src/test/scala/gr/grnet/aquarium/logic/test/PerfTest.scala

index 75259ee..86e6690 100644 (file)
@@ -73,10 +73,8 @@ class PerfTest extends DSLUtils with DSL {
 
     start = System.currentTimeMillis()
     numResolved = 0
-    val c = new GregorianCalendar()
-    c.setTime(to)
-    c.add(Calendar.YEAR, -1)
-    val min = c.getTime.getTime
+    val c = oneYearBack(to, new Date(0))
+    val min = c.getTime
 
     (1 to iter).foreach {
       i =>