| 程序包 | 说明 |
|---|---|
| com.xkzhangsan.time.cost |
计算耗时工具类,支持秒,毫秒,纳秒: CostUtil
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
MillisecondCost
计算耗时,单位毫秒
|
class |
NanosecondCost
计算耗时,单位纳秒
|
class |
SecondCost
计算秒耗时,单位 秒
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Cost |
CostUtil.startMillisecondCost()
开始计时,单位毫秒,返回cost对象
|
static Cost |
CostUtil.startMillisecondCost(String name)
开始计时,单位毫秒,返回cost对象
|
static Cost |
CostUtil.startNanosecondCost()
开始计时,单位纳秒,返回cost对象
|
static Cost |
CostUtil.startNanosecondCost(String name)
开始计时,单位纳秒,返回cost对象
|
static Cost |
CostUtil.startSecondCost()
开始计时,单位秒,返回cost对象
|
static Cost |
CostUtil.startSecondCost(String name)
开始计时,单位秒,返回cost对象
|
Copyright © 2021. All rights reserved.