Is this a good way of setting up a timer?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jun 7 17:45:42 PDT 2011


On 2011-06-03 15:02, Jonathan M Davis wrote:
> Incidentally, this use case shows that I should probably add overloads for
> some of the basic math functions for Duration...

I'm an idiot. I was thinking that min and max were in std.math and specific to 
built-in types, but we were smarter than that. They're defined as templated 
functions in std.algorithm and already work with core.time.Duration.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list