diff options
author | michelou <michelou@epfl.ch> | 2008-02-28 17:57:25 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2008-02-28 17:57:25 +0000 |
commit | c399ad282f18e3ecffd9ee11bbc994b68ad889b2 (patch) | |
tree | 0f3dd40cafff7d2346886fbd77806df036bde88b | |
parent | 82244311166dff4477a11bce2d0e7599dd916459 (diff) | |
download | scala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.tar.gz scala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.tar.bz2 scala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.zip |
minor fix (bis)
-rw-r--r-- | src/dotnet-library/scala/compat/Platform.scala | 6 |
1 files changed, 3 insertions, 3 deletions
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() } |