b3log的计时器的应用

来源:互联网 发布:python字符串转换列表 编辑:程序博客网 时间:2024/05/19 03:19
import org.b3log.latke.util.Stopwatchs;public class testJiShiQi {/** * @param args */public static void main(String[] args) {// TODO Auto-generated method stubStopwatchs.start("哈哈");for(int i=0;i<9999;i++){for(int k=0;k<9999;k++){for(int p=0;p<9999;p++){}}}long chang=Stopwatchs.getElapsed("哈哈");System.out.println(chang);Stopwatchs.end();Stopwatchs.release();}}

原创粉丝点击