Package | Description |
---|---|
com.xkzhangsan.time.cost |
计算耗时工具类,支持秒,毫秒,纳秒: CostUtil
|
Modifier and Type | Class and Description |
---|---|
class |
MillisecondCost
计算耗时,单位毫秒
|
class |
NanosecondCost
计算耗时,单位纳秒
|
class |
SecondCost
计算秒耗时,单位 秒
|
Modifier and Type | Method and Description |
---|---|
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.