Haven’t checked on other platforms/versions, but on Mountain Lion, getCurrentTime() loses time during sleep.
getCurrentTime() calls Time (currentTimeMillis())
currentTimeMillis() only calls the underlying OS time calls when first invoked, or when the counter wraps. So, when the millisecond timer is suspended…
I don’t think you want to slow the time call down, so perhaps a call expressly get systemTime? If there is one already and I missed it, sorry.
Alternately, you could make the time system sleep aware.
Sorry, brain is full with something else at the moment - But I wanted to note it while I still remembered it.