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

x33g5p2x  于2022-01-29 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(174)

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

StopWatch.getSplitNanoTime介绍

[英]Get the split time on the stopwatch in nanoseconds.

This is the time between start and latest split.
[中]以纳秒为单位计算秒表上的分割时间。
这是从开始到最后一次拆分之间的时间。

代码示例

代码示例来源:origin: org.apache.commons/commons-lang3

/**
 * <p>
 * Get the split time on the stopwatch.
 * </p>
 *
 * <p>
 * This is the time between start and latest split.
 * </p>
 *
 * @return the split time in milliseconds
 *
 * @throws IllegalStateException
 *             if the StopWatch has not yet been split.
 * @since 2.1
 */
public long getSplitTime() {
  return getSplitNanoTime() / NANO_2_MILLIS;
}
/**

代码示例来源:origin: io.virtdata/virtdata-lib-curves4

/**
 * <p>
 * Get the split time on the stopwatch.
 * </p>
 *
 * <p>
 * This is the time between start and latest split.
 * </p>
 *
 * @return the split time in milliseconds
 *
 * @throws IllegalStateException
 *             if the StopWatch has not yet been split.
 * @since 2.1
 */
public long getSplitTime() {
  return getSplitNanoTime() / NANO_2_MILLIS;
}
/**

代码示例来源:origin: de.knightsoft-net/gwt-commons-lang3

/**
 * <p>
 * Get the split time on the stopwatch.
 * </p>
 *
 * <p>
 * This is the time between start and latest split.
 * </p>
 *
 * @return the split time in milliseconds
 *
 * @throws IllegalStateException
 *             if the StopWatch has not yet been split.
 * @since 2.1
 */
public long getSplitTime() {
  return getSplitNanoTime() / NANO_2_MILLIS;
}
/**

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * <p>
 * Get the split time on the stopwatch.
 * </p>
 *
 * <p>
 * This is the time between start and latest split.
 * </p>
 *
 * @return the split time in milliseconds
 *
 * @throws IllegalStateException
 *             if the StopWatch has not yet been split.
 * @since 2.1
 */
public long getSplitTime() {
  return getSplitNanoTime() / NANO_2_MILLIS;
}
/**

相关文章