summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-02-28 17:52:54 +0000
committermichelou <michelou@epfl.ch>2008-02-28 17:52:54 +0000
commitfc13dfb1f75860eec6e5de5284c80722ca2d32b0 (patch)
tree413372fa242cc58894c4cddba855d2729011b968 /src/dotnet-library
parent6213bbc492af944023a18a284e1a16a809b98761 (diff)
downloadscala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.tar.gz
scala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.tar.bz2
scala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.zip
updated currentTime (dotnet)
Diffstat (limited to 'src/dotnet-library')
-rw-r--r--src/dotnet-library/scala/compat/Platform.scala10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dotnet-library/scala/compat/Platform.scala b/src/dotnet-library/scala/compat/Platform.scala
index 6caac5b781..6125fbe575 100644
--- a/src/dotnet-library/scala/compat/Platform.scala
+++ b/src/dotnet-library/scala/compat/Platform.scala
@@ -50,8 +50,14 @@ object Platform {
val EOL = System.Environment.NewLine
- def currentTime: Long = 0L
-
+ def currentTime: Long = 0
+/* // compiler crash :-(
+ def currentTime: Long = {
+ val nowTime = System.DateTime.UtcNow
+ val baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0)
+ (nowTime.Ticks - baseTime.Ticks) / 10000
+ }
+*/
def collectGarbage { System.GC.Collect() }
}