On 06.03.2012 21:09, Andrej Mitrovic wrote:
I'll never forgive std.datetime for this mistake:

auto sw = StopWatch(AutoStart.yes);
writeln(sw.peek.hnsecs);
writeln(sw.peek.nsecs);
writeln(sw.peek.usecs);
writeln(sw.peek.msecs);
writeln(sw.peek.secs);  // bzzzzz NOPE
writeln(sw.peek.seconds);

I misspell this thing every single time I use stopwatch to count seconds.

Me too.
It's coming from separate stopwatch module that got merged with std.datetime, so the blame is somewhat misplaced :)

--
Dmitry Olshansky

Reply via email to