Author Topic: DeRangeD  (Read 664 times)

MrBcx

  • Administrator
  • Sr. Member
  • *****
  • Posts: 434
    • View Profile
Re: DeRangeD
« Reply #15 on: July 31, 2020, 11:49:17 AM »
I has occasion today to use DeRanged and decided I wanted a progress indicator, so the attached modification
produces output like shown below.  I have the updates occuring at 5 second intervals but you can change that to whatever
you want.


c:\Temp>deranged 20  70  10000000
Code: [Select]

Creating DeRangeD2.txt

Lines Written: 1,040,961      Lines Remaining: 8,959,039       Bytes Written: 43,781,300
Lines Written: 2,070,885      Lines Remaining: 7,929,115       Bytes Written: 86,909,616
Lines Written: 3,083,942      Lines Remaining: 6,916,058       Bytes Written: 130,255,360
Lines Written: 4,114,001      Lines Remaining: 5,885,999       Bytes Written: 173,843,392
Lines Written: 5,138,150      Lines Remaining: 4,861,850       Bytes Written: 216,943,408
Lines Written: 6,191,396      Lines Remaining: 3,808,604       Bytes Written: 260,230,256
Lines Written: 7,230,462      Lines Remaining: 2,769,538       Bytes Written: 305,538,144
Lines Written: 8,253,210      Lines Remaining: 1,746,790       Bytes Written: 350,448,608
Lines Written: 9,297,084      Lines Remaining: 702,916       Bytes Written: 395,247,328

Task completed in 49 seconds

« Last Edit: July 31, 2020, 11:54:38 AM by MrBcx »