Ok I understand why there is no conversion from Duration to float, but would be possible to make Duration.total not a member function? So insted of:

static mytotal(string unit)(Duration dur)
{
    return dur.total!unit;
}

alias msecs = mytotal!"msecs";

I could just add
alias msecs = total!"msecs";


On Wed, Nov 22, 2017 at 11:48 AM, Walter Bright via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
On 11/22/2017 1:38 AM, Timon Gehr wrote:
My claim is not that conversion from time to floating point values associated with a few natural units is "properly part of the time abstraction", just that it should exist. Do you agree with that?

I refer to my reply to Jon Degenhardt which has a substantial answer to that.