diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-28 20:31:35 +0400 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-28 20:31:35 +0400 |
commit | 270a3f6e22782278a5254c4c073cad2ad8b6ccf8 (patch) | |
tree | 55ea555868fdab92eff97395d36aa83599f0cf39 /timer/SystemTimerResolution.java | |
parent | b3705cf40072203386d784c161419cbcc9e9d164 (diff) | |
download | fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.gz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.lz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.xz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.zip |
java-decompiler: post-import cleanup (unneeded files dropped)
Diffstat (limited to 'timer/SystemTimerResolution.java')
-rw-r--r-- | timer/SystemTimerResolution.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/timer/SystemTimerResolution.java b/timer/SystemTimerResolution.java deleted file mode 100644 index 56ececd..0000000 --- a/timer/SystemTimerResolution.java +++ /dev/null @@ -1,31 +0,0 @@ -// ---------------------------------------------------------------------------- -/** - * A simple class to see what the Java system timer resolution is on your - * system. - * - * @author (C) <a href="mailto:vroubtsov@illinoisalumni.org">Vlad Roubtsov</a>, 2002 - */ -public class SystemTimerResolution -{ - // public: ................................................................ - - public static void main (final String [] args) - { - // JIT/hotspot warmup: - for (int r = 0; r < 3000; ++ r) System.currentTimeMillis (); - - long time = System.currentTimeMillis (), time_prev = time; - - for (int i = 0; i < 5; ++ i) - { - // busy wait until system time changes: - while (time == time_prev) - time = System.currentTimeMillis (); - - System.out.println ("delta = " + (time - time_prev) + " ms"); - time_prev = time; - } - } - -} // end of class -// ---------------------------------------------------------------------------- |