From c399ad282f18e3ecffd9ee11bbc994b68ad889b2 Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 28 Feb 2008 17:57:25 +0000 Subject: minor fix (bis) --- src/dotnet-library/scala/compat/Platform.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dotnet-library') diff --git a/src/dotnet-library/scala/compat/Platform.scala b/src/dotnet-library/scala/compat/Platform.scala index 44f0547707..e589860bdc 100644 --- a/src/dotnet-library/scala/compat/Platform.scala +++ b/src/dotnet-library/scala/compat/Platform.scala @@ -52,10 +52,10 @@ object Platform { def currentTime: Long = 0L /* // compiler crash :-( - private val baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0) + private lazy val baseTicks = (new System.DateTime(1970, 1, 1, 0, 0, 0)).Ticks def currentTime: Long = { - val nowTime = System.DateTime.UtcNow - (nowTime.Ticks - baseTime.Ticks) / 10000 + val nowTicks = System.DateTime.UtcNow.Ticks + (nowTicks - baseTicks) / 10000 } */ def collectGarbage { System.GC.Collect() } -- cgit v1.2.3