diff options
author | michelou <michelou@epfl.ch> | 2008-02-28 17:52:54 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2008-02-28 17:52:54 +0000 |
commit | fc13dfb1f75860eec6e5de5284c80722ca2d32b0 (patch) | |
tree | 413372fa242cc58894c4cddba855d2729011b968 | |
parent | 6213bbc492af944023a18a284e1a16a809b98761 (diff) | |
download | scala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.tar.gz scala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.tar.bz2 scala-fc13dfb1f75860eec6e5de5284c80722ca2d32b0.zip |
updated currentTime (dotnet)
-rw-r--r-- | src/dotnet-library/scala/compat/Platform.scala | 10 |
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() } } |