Reading bigger file

bioinfornatics bioinfornatics at fedoraproject.org
Fri Mar 8 07:58:19 PST 2013


On Friday, 8 March 2013 at 15:31:46 UTC, Chris Cain wrote:
> On Friday, 8 March 2013 at 15:25:02 UTC, bioinfornatics wrote:
>> why when reading a huge file more i advance into the file more 
>> that take time to get a line ?
>
> ----
>     StopWatch   sw;
>     while( !fastq1.empty ){
>         sw.start();
>         auto        q1          = fastq1.next();
>         sw.stop();
>         writeln( sw.peek().msecs() );
>     }
> ----
>
> That's because you never reset the StopWatch.

oh ok, i was though sw.start() init at 0. We will said that is 
friday ... thanks ^^


More information about the Digitalmars-d-learn mailing list