Skip to content

Instantly share code, notes, and snippets.

@gavinHuang
Created March 21, 2012 02:07
Show Gist options
  • Save gavinHuang/2143692 to your computer and use it in GitHub Desktop.
Save gavinHuang/2143692 to your computer and use it in GitHub Desktop.
time in java
System.currentMiliseconds//毫秒
System.nanoTime//纳秒 (1/1000微秒)
但通常用于计算时间间隔,对于时间间隔过久的,可能导致问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment