Programming Windows D Examples are now Online!
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Jun 23 14:50:38 PDT 2011
On 6/23/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> On Thu, 23 Jun 2011 07:27:34 -0400, Jimmy Cao <jcao219 at gmail.com> wrote:
>
>
>> Thread.sleep( 70_000_000 ); // 7 sec
>
> Gah!
>
> Here, let me fix that for you:
>
> Thread.sleep(dur!"seconds"(7));
>
> :)
>
> -Steve
>
I find it very odd that for seconds we use "seconds", but for
everything else we use "msec", "usec", "hnsecs" abbreviations.
More information about the Digitalmars-d-announce
mailing list