summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
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() }
}