📄 systemclock.java
字号:
package com.croftsoft.core.animation.clock;
import com.croftsoft.core.animation.Clock; import com.croftsoft.core.math.MathConstants;
/*********************************************************************
* Uses the system clock to provide the current time in nanoseconds.
*
* @version
* 2003-04-02 * @since
* 2002-03-09
* @author
* <a href="http://www.croftsoft.com/">David Wallace Croft</a>
*********************************************************************/
public final class SystemClock
implements Clock
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
{ public static final SystemClock INSTANCE = new SystemClock ( ); public long currentTimeNanos ( )
//////////////////////////////////////////////////////////////////////
{
return MathConstants.NANOSECONDS_PER_MILLISECOND * System.currentTimeMillis ( );
} private SystemClock ( ) { }
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -