org.apache.commons.lang.time.StopWatch.getSplitTime()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.apache.commons.lang.time.StopWatch.getSplitTime()方法的一些代码示例,展示了StopWatch.getSplitTime()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StopWatch.getSplitTime()方法的具体详情如下:
包路径:org.apache.commons.lang.time.StopWatch
类名称:StopWatch
方法名:getSplitTime

StopWatch.getSplitTime介绍

[英]Get the split time on the stopwatch.

This is the time between start and latest split.
[中]在秒表上记下分时。
这是从开始到最后一次拆分之间的时间。

代码示例

代码示例来源:origin: commons-lang/commons-lang

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * <p>
 * Gets a summary of the split time that the stopwatch recorded as a string.
 * </p>
 * 
 * <p>
 * The format used is ISO8601-like, <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.
 * </p>
 * 
 * @return the split time as a String
 * @since 2.1
 */
public String toSplitString() {
  return DurationFormatUtils.formatDurationHMS(getSplitTime());
}

代码示例来源:origin: io.openscore/score-queue-impl

listener.prePersist(messages);
  if (logger.isDebugEnabled()) logger.debug("Listeners done in " + (stopWatch.getSplitTime()) + " ms");
if (logger.isDebugEnabled()) logger.debug("Persistency done in " + (stopWatch.getSplitTime()) + " ms");
      listener.onTerminated(terminatedMessages);
  if (logger.isDebugEnabled()) logger.debug("Listeners done in " + (stopWatch.getSplitTime()) + " ms");

代码示例来源:origin: drallieiv/KinanCity

recoveryModeTimer.start();
} else {
  if (missmatchRecovery && recoveryModeTimer.getSplitTime() < minTimeForRecovery * 1000) {
    logger.info("Disable MissmatchRecovery mode");
    missmatchRecovery = false;

代码示例来源:origin: CloudSlang/score

listener.prePersist(messages);
  if (logger.isDebugEnabled()) logger.debug("Listeners done in " + (stopWatch.getSplitTime()) + " ms");
if (logger.isDebugEnabled()) logger.debug("Persistency done in " + (stopWatch.getSplitTime()) + " ms");
  if (logger.isDebugEnabled()) logger.debug("Listeners done in " + (stopWatch.getSplitTime()) + " ms");

相关文章