blob: cc8cb5e727d3b9b7e76103e452f6c2b9fa640e64 [file] [log] [blame]
// +build ignore,OMIT
package sample // OMIT
import ( // OMIT
"duration" // OMIT
"time" // OMIT
) // OMIT
// duration.Unterminated = -1 * time.Second
func (it Iterator) DurationAt() time.Duration {
// some code
switch durationUsec := m.GetDurationUsec(); durationUsec {
case -1:
return duration.Unterminated // HL
case -2:
return -2 // HL
default:
return time.Duration(durationUsec) * time.Microsecond // HL
}
return -3 // HL
}