blob: 2545e4896c30f806fd7a3642a152a54a7d982418 [file] [log] [blame]
// +build 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.Duation(durationUsec) * time.Microsecond // HL
}
return -3 // HL
}