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.
发布评论
评论(3)
十分之一是这种测量的标准 SI 单位,所以我想说使用它比发明一些可能不明确的东西更好。
实际上,过去我出于同样的原因使用过诸如
TICKS_PER_100MS
之类的东西。但是durationIn100msPeriods
和durationInTenthsOfSeconds
一样糟糕。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. ButdurationIn100msPeriods
is just as bad asdurationInTenthsOfSeconds
.http://en.wiktionary.org/wiki/decisecond
http://en.wiktionary.org/wiki/decisecond
durationTenthsOfASecond
会不会太冗长?Would
durationTenthsOfASecond
be too verbose?