Looks good. One small convenience feature I'd like, though, is the ability to do simple microbenchmarks with less boilerplate, something like:<br><br>import std.stopwatch, std.stdio;<br><br>void main() {<br> writeln(timeMillisecond({<br>
// Do stuff.<br> });<br>}<br><br>timeMilliseconds would simply take a void delegate(), time its execution and return the time it takes in milliseconds. Similar things could be done for timeMicroseconds and timeSeconds.<br>
<br><div class="gmail_quote">On Tue, Aug 17, 2010 at 6:43 AM, SHOO <span dir="ltr"><<a href="mailto:zan77137@nifty.com" target="_blank">zan77137@nifty.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I made the module of the stopwatch, so I suggest it again here.<br>
<br>
I suggested a time handling module that I called std.time before.<br>
Unfortunately itself was not able to contribute to Phobos for the issue<br>
of license. But, an important function was included in it. It is what is<br>
the StopWatch suggested this time.<br>
<br>
I have some knowledge about machine control engineering. In the field of<br>
the machine control engineering, the high accuracy time measurement<br>
often plays an important role.<br>
For example, the case wants to perform the measurement of the voltage<br>
with time by millisecond order for feedback control. When it looks like<br>
it, resolution power is not enough by time acquisition such as C's time<br>
function in many cases.<br>
<br>
Or the high accuracy time measurement is important in the game<br>
programming, too. Or in benchmark testing, too.<br>
<br>
There is std.perf in Phobos as a module with this role now.<br>
However, the module is unlisted, and a license doesn't seem to be a<br>
Boost license, too.<br>
I did not refer Tango at all about this class and examined and made it<br>
in my own hand completely.<br>
<br>
Here is the module to suggest this time:<br>
<a href="http://ideone.com/TVw1P" target="_blank">http://ideone.com/TVw1P</a><br>
<br>
# This module is tested by Windows (real) and Ubuntu (virtual PC).<br>
<br>
Please look at it once by all means, and review it.<br>
I think that I will commit it at 2010-08-22T15:00Z as far as there is<br>
not serious dissenting opinion.<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</blockquote></div><br>