summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-02-28 17:57:25 +0000
committermichelou <michelou@epfl.ch>2008-02-28 17:57:25 +0000
commitc399ad282f18e3ecffd9ee11bbc994b68ad889b2 (patch)
tree0f3dd40cafff7d2346886fbd77806df036bde88b /src/dotnet-library
parent82244311166dff4477a11bce2d0e7599dd916459 (diff)
downloadscala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.tar.gz
scala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.tar.bz2
scala-c399ad282f18e3ecffd9ee11bbc994b68ad889b2.zip
minor fix (bis)
Diffstat (limited to 'src/dotnet-library')
-rw-r--r--src/dotnet-library/scala/compat/Platform.scala6
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() }