<div dir="ltr">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:<div><br></div><div><div>static mytotal(string unit)(Duration dur)</div><div>{</div><div>    return dur.total!unit;</div><div>}</div><div><br></div><div>alias msecs = mytotal!"msecs";</div></div><div><br></div><div>I could just add</div><div>alias msecs = total!"msecs";<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 22, 2017 at 11:48 AM, Walter Bright via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11/22/2017 1:38 AM, Timon Gehr wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<br>
</blockquote>
<br></span>
I refer to my reply to Jon Degenhardt which has a substantial answer to that.<br>
</blockquote></div><br></div>