Improve the precision of in_ms and in_s

Durations are based on ticks, not seconds. In theory, at least.