Guest User

Untitled

a guest
Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1.        void backgroundWorkerInsertion_DoWork(object sender, DoWorkEventArgs e)
  2.         {
  3.             DateTime insertionstartTime = DateTime.Now;
  4.             InsertionSort(arrayInsertion);
  5.             TimeSpan insertionDiff = DateTime.Now.Subtract(insertionstartTime);
  6.             //rectInsertion.Height = diff.TotalMilliseconds / 10;        
  7.             backgroundWorkerInsertion.ReportProgress(0, insertionDiff.TotalMilliseconds);
  8.  
  9.         }
  10.  
  11.         void backgroundWorkerExchange_DoWork(object sender, DoWorkEventArgs e)
  12.         {
  13.             DateTime exchangestartTime = DateTime.Now;
  14.             ExchangeSort(arrayExchange);
  15.             TimeSpan insertionDiff = DateTime.Now.Subtract(exchangestartTime);
  16.             //rectInsertion.Height = diff.TotalMilliseconds / 10;        
  17.             backgroundWorkerExchange.ReportProgress(0, exchangeDiff.TotalMilliseconds);
  18.  
  19.         }
Add Comment
Please, Sign In to add comment