Align api of Duration with DataSize

Record DataSize unit so unit does not change with printing
Rollback incompatible change to Duration.convertTo()