Documentation ¶
Index ¶
- func DiffMS(a, b time.Duration) int64
- func DiffS(a, b time.Duration) int64
- func Now() time.Duration
- func NowDiff(d time.Duration) time.Duration
- func NowDiffMS(d time.Duration) int64
- func NowDiffS(d time.Duration) int64
- func ToDuration(tm *time.Time) time.Duration
- func ToStringMS(dur time.Duration) string
- func ToTime(d time.Duration) time.Time
- type FakeTicker
- type Ticker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NowDiff ¶ added in v0.4.3
时间差+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 当前时间和传入的指定时间之间的时间差(这里比较绕,都是相对的概念)
func ToStringMS ¶ added in v0.4.3
Types ¶
type FakeTicker ¶
func NewFakeTicker ¶
func NewFakeTicker() FakeTicker
Click to show internal directories.
Click to hide internal directories.