Align api of Duration with DataSize

Record DataSize unit so unit does not change with printing