// NewTimer creates a new Timer that will send the current time on its channel
// after at least duration d.
//
// A negative or zero duration fires the timer immediately.
NewTimer creates a new Timer that will send the current time on its channel
after at least duration d.

A negative or zero duration fires the timer immediately.
// NewTimer creates a new Timer that will send the current time on its channel // after at least duration d . // // A negative or zero duration fires the timer immediately .
func (s *Simulator) NewTimer(d time.Duration) *Timer {
	s.Lock()
	defer s.Unlock()
	return s.newTimerFunc(s.now.Add(d), nil)
}
func ( s * Simulator ) NewTimer ( d time . Duration ) * Timer { s . Lock ( ) defer s . Unlock ( ) return s . newTimerFunc ( s . now . Add ( d ) , nil ) }
NewTimer creates a new Timer that will send the current time on its channel
after at least duration d.
NewTimer creates a new Timer that will send the current time on its channel after at least duration d .