From 8174ad00b3712f993791c2a3aae61b84d4524e24 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Mon, 25 Jan 2016 12:13:12 +0000 Subject: [PATCH] Added comment to Time::getCurrentTime() to make clear that it is not required to be monotonic. --- modules/juce_core/time/juce_Time.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_core/time/juce_Time.h b/modules/juce_core/time/juce_Time.h index b51ed07793..a2bdb3ab05 100644 --- a/modules/juce_core/time/juce_Time.h +++ b/modules/juce_core/time/juce_Time.h @@ -99,6 +99,9 @@ public: //============================================================================== /** Returns a Time object that is set to the current system time. + This may not be monotonic, as the system time can change at any moment. + You should therefore not use this method for measuring time intervals. + @see currentTimeMillis */ static Time JUCE_CALLTYPE getCurrentTime() noexcept;