本文整理了Java中org.apache.commons.lang.time.StopWatch.toString()
方法的一些代码示例,展示了StopWatch.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StopWatch.toString()
方法的具体详情如下:
包路径:org.apache.commons.lang.time.StopWatch
类名称:StopWatch
方法名:toString
[英]Gets a summary of the time that the stopwatch recorded as a string.
The format used is ISO8601-like, hours:minutes:seconds.milliseconds.
[中]获取秒表记录为字符串的时间摘要。
使用的格式类似于ISO8601,小时:分钟:秒。毫秒。
代码示例来源:origin: jaxio/generated-projects
@PostConstruct
public void createIndex() {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
try {
for (Class<?> classToBeIndexed : CLASSES_TO_BE_INDEXED) {
indexClass(classToBeIndexed);
}
} finally {
stopWatch.stop();
log.info("Indexed {} in {}", Arrays.toString(CLASSES_TO_BE_INDEXED), stopWatch.toString());
}
}
代码示例来源:origin: org.kuali.rice/rice-kns
if (LOG.isDebugEnabled()) {
watch.stop();
LOG.debug(WATCH_NAME + ": " + watch.toString());
代码示例来源:origin: jaxio/generated-projects
private void indexClass(Class<?> classToBeIndexed) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
try {
getFullTextEntityManager(entityManager) //
.createIndexer(classToBeIndexed) //
.batchSizeToLoadObjects(batchSizeToLoadObjects) //
.threadsToLoadObjects(threadsToLoadObjects) //
.threadsForSubsequentFetching(threadsForSubsequentFetching) //
.startAndWait();
} catch (InterruptedException e) {
log.warn("Interrupted while indexing " + classToBeIndexed.getSimpleName(), e);
Thread.currentThread().interrupt();
} finally {
stopWatch.stop();
log.info("Indexed {} in {}", classToBeIndexed.getSimpleName(), stopWatch.toString());
}
}
}
代码示例来源:origin: stackoverflow.com
if( logger.isDebugEnabled() )
logger.debug("CHIUSURA STOPWATCH FORZATA. "+sw.toString());
代码示例来源:origin: SonarSource/SonarJS
issueCollector.writeSummary();
timer.stop();
LOGGER.info("Execution time: " + timer.toString());
代码示例来源:origin: org.deeplearning4j/cdh4
+ ", Running Time: " + watch.toString() );
代码示例来源:origin: zulip/zulip-android
"Retrieving cached messages: " + watch.toString());
代码示例来源:origin: CloudSlang/cloud-slang
id = scoreServices.triggerSync(compilationArtifact, mergedInputs, systemProperties, quiet, debug);
stopWatch.stop();
return quiet ? StringUtils.EMPTY : triggerSyncMsg(id, stopWatch.toString());
内容来源于网络,如有侵权,请联系作者删除!