Documentation
¶
Index ¶
Constants ¶
View Source
const SimpleDate = "2006-01-02"
View Source
const SimpleTime = "2006-01-02 15:04:05"
View Source
const SimpleTimeMills = "2006-01-02 15:04:05.000"
Variables ¶
This section is empty.
Functions ¶
func EpochMills ¶
EpochMills convert unix epoch mills to time
Types ¶
type Stopwatch ¶ added in v1.0.1
type Stopwatch struct {
// contains filtered or unexported fields
}
Stopwatch for measure elapsed time. This class is NOT thread-safe.
func NewStopwatch ¶ added in v1.0.1
func NewStopwatch() *Stopwatch
Create new Stopwatch, not started.
func NewStopwatchStarted ¶ added in v1.0.1
func NewStopwatchStarted() *Stopwatch
Create new Stopwatch, which is started.
func (*Stopwatch) Elapsed ¶ added in v1.0.1
Return elapsed time. If not started, always return zero; If started and not stopped, return time interval from begin time to now; If stopped, return elapsed time duration from started time to stopped time.
Click to show internal directories.
Click to hide internal directories.