Use time durations instead of integers for millisecond lengths.