summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/compat/Platform.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library/scala/compat/Platform.scala b/src/library/scala/compat/Platform.scala
index b6d7de2c56..bf402a7968 100644
--- a/src/library/scala/compat/Platform.scala
+++ b/src/library/scala/compat/Platform.scala
@@ -48,6 +48,11 @@ object Platform {
val EOL = util.Properties.lineSeparator
+ /** The current time in milliseconds. The time is counted since 1 January 1970
+ * UTC.
+ *
+ * Note that the operating system timer used to obtain this value may be less
+ * precise than a millisecond. */
@inline
def currentTime: Long = System.currentTimeMillis()