Created
March 21, 2012 02:07
-
-
Save gavinHuang/2143692 to your computer and use it in GitHub Desktop.
time in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.currentMiliseconds//毫秒 | |
System.nanoTime//纳秒 (1/1000微秒) | |
但通常用于计算时间间隔,对于时间间隔过久的,可能导致问题 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment