Here's one small cleanup request I noticed when actually using StopWatch. The following is absurdly verbose and makes me feel like I'm programming in Java:

    auto sw = new StopWatch(StopWatch.AutoStart.yes);

Could we move the AutoStart enum into the module-level namespace instead of the StopWatch class namespace, and maybe give it a default value of yes, just to make instantiating StopWatch less verbose?

On 8/22/2010 11:11 AM, dsource.org wrote:
phobos commit, revision 1919


user: SHOO

msg:
Added stopwatch module

Added StopWatch, Ticks, systime, apptime, comparingBenchmark, measureTime.

http://www.dsource.org/projects/phobos/changeset/1919

_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos


_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to