// Until returns the duration until t.
Until returns the duration until t.
// Until returns the duration until t .
func (s *Simulator) Until(t time.Time) time.Duration {
	s.Lock()
	defer s.Unlock()
	return t.Sub(s.now)
}
func ( s * Simulator ) Until ( t time . Time ) time . Duration { s . Lock ( ) defer s . Unlock ( ) return t . Sub ( s . now ) }
Until returns the duration until t.
Until returns the duration until t .