--- a/src/Pure/General/time.scala Tue Apr 01 11:02:40 2014 +0200
+++ b/src/Pure/General/time.scala Tue Apr 01 16:16:25 2014 +0200
@@ -21,7 +21,7 @@
String.format(Locale.ROOT, "%.3f", s.asInstanceOf[AnyRef])
}
-final class Time private(val ms: Long)
+final class Time private(val ms: Long) extends AnyVal
{
def + (t: Time): Time = new Time(ms + t.ms)
@@ -33,13 +33,6 @@
def is_zero: Boolean = ms == 0
def is_relevant: Boolean = ms >= 1
- override def hashCode: Int = ms.hashCode
- override def equals(that: Any): Boolean =
- that match {
- case other: Time => ms == other.ms
- case _ => false
- }
-
override def toString = Time.print_seconds(seconds)
def message: String = toString + "s"