Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this questionI have a data element with units of tenths of a second (tha开发者_高级运维t is, the value "123" really means "12.3 seconds").
What is a good term for an descriptive identifier for this type of data? I'd be comfortable writing something like durationMilliseconds
or durationMicroseconds
, but durationDeciseconds
looks odd. durationInTenthsOfSeconds
doesn't make me happy either.
Decisecond is the standard SI unit for this measurement, so I'd say using that is better than inventing something that may be ambiguous.
Actually, in the past I've used things like TICKS_PER_100MS
for the same reason. But durationIn100msPeriods
is just as bad as durationInTenthsOfSeconds
.
http://en.wiktionary.org/wiki/decisecond
Would durationTenthsOfASecond
be too verbose?
精彩评论