Documentation ¶
Index ¶
- type Watch
- func (sw *Watch) ElapsedMicroseconds() int64
- func (sw *Watch) ElapsedMilliseconds() int64
- func (sw *Watch) ElapsedNanoseconds() int64
- func (sw *Watch) GetMicrosecondsText() string
- func (sw *Watch) GetMillisecondsText() string
- func (sw *Watch) GetNanosecondsText() string
- func (sw *Watch) Restart()
- func (sw *Watch) Start()
- func (sw *Watch) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func (*Watch) ElapsedMicroseconds ¶ added in v0.3.0
ElapsedMicroseconds 返回当前已计时的时间(微秒)
func (*Watch) ElapsedMilliseconds ¶
ElapsedMilliseconds 返回当前已计时的时间(毫秒)
func (*Watch) ElapsedNanoseconds ¶ added in v0.3.0
ElapsedNanoseconds 返回当前已计时的时间(纳秒)
func (*Watch) GetMicrosecondsText ¶ added in v0.3.0
GetMicrosecondsText 返回当前已计时的时间(微秒)
func (*Watch) GetMillisecondsText ¶
GetMillisecondsText 返回当前已计时的时间(毫秒)
func (*Watch) GetNanosecondsText ¶ added in v0.3.0
GetNanosecondsText 返回当前已计时的时间(纳秒)
Click to show internal directories.
Click to hide internal directories.