simpletimeprofiler.java
来自「firefox的html解析器 本程序实现了想数据库中添加多媒体文件和文件说明」· Java 代码 · 共 32 行
JAVA
32 行
/**
*
*/
package com.dappit.Dapper.parser.profiler;
/**
* @author Ohad Serfaty
*
*/
public class SimpleTimeProfiler extends SimpleProfiler {
long startStamp;
/**
*
*/
public double report(String prefix)
{
long endStamp = System.currentTimeMillis();
double resultSeconds = (double)((double)(endStamp-startStamp)/1000.0);
System.err.println(prefix +" : " + resultSeconds +" sec.");
return resultSeconds;
}
/**
*
*/
public void start() {
startStamp = System.currentTimeMillis();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?