// Code generated by "stringer -type=TimeUnit"; DO NOT EDIT

package speed

import "fmt"

const (
	_TimeUnit_name_0 = "NanosecondUnit"
	_TimeUnit_name_1 = "MicrosecondUnit"
	_TimeUnit_name_2 = "MillisecondUnit"
	_TimeUnit_name_3 = "SecondUnit"
	_TimeUnit_name_4 = "MinuteUnit"
	_TimeUnit_name_5 = "HourUnit"
)

var (
	_TimeUnit_index_0 = [...]uint8{0, 14}
	_TimeUnit_index_1 = [...]uint8{0, 15}
	_TimeUnit_index_2 = [...]uint8{0, 15}
	_TimeUnit_index_3 = [...]uint8{0, 10}
	_TimeUnit_index_4 = [...]uint8{0, 10}
	_TimeUnit_index_5 = [...]uint8{0, 8}
)

func (i TimeUnit) String() string {
	switch {
	case i == 16777216:
		return _TimeUnit_name_0
	case i == 16781312:
		return _TimeUnit_name_1
	case i == 16785408:
		return _TimeUnit_name_2
	case i == 16789504:
		return _TimeUnit_name_3
	case i == 16793600:
		return _TimeUnit_name_4
	case i == 16797696:
		return _TimeUnit_name_5
	default:
		return fmt.Sprintf("TimeUnit(%d)", i)
	}
}
