Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnitTest_TimedTask ¶
func UnitTest_TimedTask()
Types ¶
type TimeRecorder ¶
type TimeRecorder struct { sync.Mutex BeginTime time.Time // contains filtered or unexported fields }
func NewTimeRecorder ¶
func NewTimeRecorder() *TimeRecorder
func (*TimeRecorder) Begin ¶
func (this *TimeRecorder) Begin(formatPrefix string)
func (*TimeRecorder) End ¶
func (this *TimeRecorder) End()
type TimedTask ¶
type TimedTask struct {
// contains filtered or unexported fields
}
func SetInterval ¶
func SetInterval(duration time.Duration, callback TimedTaskCallback) *TimedTask
add interval task.
func SetTimeout ¶
func SetTimeout(duration time.Duration, callback TimedTaskCallback) *TimedTask
add timeout task.
type TimedTaskCallback ¶
type TimedTaskCallback func()
Click to show internal directories.
Click to hide internal directories.