📄 timer.java
字号:
// This class encapsulates a Timer mechanism // Can be used for Profiling of parts of code and gathering statistics package NexusII ; public class Timer { public Timer(){ start_ = 0 ; }public void start(){ start_ = System.currentTimeMillis(); }public long elapsed_time(){ return System.currentTimeMillis() - start_ ; }public void stop(){ start_ = 0 ; }private long start_ = 0 ; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -