<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 7:21 PM, Timothee Cour <span dir="ltr"><<a href="mailto:thelastmammoth@gmail.com" target="_blank">thelastmammoth@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>This used to work prior to 2.066 (rc):</div>
<div>Duration t;<br></div><div>auto tv=timeval(t.total!"seconds",t.fracSec.usecs);</div><div>now it works but with:</div><div>Deprecation: function core.time.Duration.fracSec is deprecated - Please use split instead.<br>

</div><div><br></div><div>I see there's a SysTime.toTimeVal but there's no Duration.toTimeVal. Shouldn't there be?</div><div>What would be the new recommended implementation?</div><div>Also, I think deprecation messages could be more precise, telling exactly how to make the change instead of telling you the function name.</div>

<div><br></div></div>
</blockquote></div><br></div><div class="gmail_extra">is this correct?</div><div class="gmail_extra"><div class="gmail_extra">    int secs,usecs;</div><div class="gmail_extra">    timeout.split!("seconds","usecs")(secs,usecs);</div>
<div class="gmail_extra">    auto tv=timeval(secs,usecs);</div><div>specifically, I'm not sure about the type 'int'.</div><div><br></div></div></div>