Write a stream output operator for durations.

Will write the number of milliseconds to the stream.