Duration template specializations affect precision

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Duration template specializations like Seconds affect the precision of operations. E.g. Seconds(1) / 2 results in a zero-duration object. I had been belaboring under the assumption that the template specializations are a syntactical convenience so that e.g. Milliseconds(86400000) can be written as Days(1). I think it's unintuitive for the duration subtype to have an effect on arithmetic precision.

      Change the duration types so that arithmetic operations use a common, reasonably fine-grained precision.

            Assignee:
            Unassigned
            Reporter:
            James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: