OT: ptime [WAS: Re: stdio performance in tango, stdlib, and perl]

Kristian Kilpi kjkilpi at gmail.com
Thu Mar 22 12:28:30 PDT 2007


On Thu, 22 Mar 2007 19:45:16 +0200, Walter Bright  
<newshound at digitalmars.com> wrote:
> Sean Kelly wrote:
>> For what it's worth, I created a Win32 version of the Unix 'time'  
>> command recently.  Not too complicated, but if anyone is interested, I  
>> have it here: http://www.invisibleduck.org/~sean/tmp/ptime.zip  It's a  
>> quick and dirty implementation, but works for how I typically use it.
>
>
> Alternatively,
>   http://www.digitalmars.com/techtips/timing_code.html

BTW, the following line (printed in bold in 'timing_code.html'):

   auto Timer t = new Timer();

uses 'auto' instead of 'scope'. There is also another identical line at  
the bottom of the page.

I think I should also mention that DMD v1.007 uses 'auto' in the error  
message 'Error: variable XXX reference to auto class must be auto'  
(happens when a scope class object is declared without the 'scope'  
keyword). Is this minor glitch corrected in DMD v1.009?



More information about the Digitalmars-d mailing list