Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void backgroundWorkerInsertion_DoWork(object sender, DoWorkEventArgs e)
- {
- DateTime insertionstartTime = DateTime.Now;
- InsertionSort(arrayInsertion);
- TimeSpan insertionDiff = DateTime.Now.Subtract(insertionstartTime);
- //rectInsertion.Height = diff.TotalMilliseconds / 10;
- backgroundWorkerInsertion.ReportProgress(0, insertionDiff.TotalMilliseconds);
- }
- void backgroundWorkerExchange_DoWork(object sender, DoWorkEventArgs e)
- {
- DateTime exchangestartTime = DateTime.Now;
- ExchangeSort(arrayExchange);
- TimeSpan insertionDiff = DateTime.Now.Subtract(exchangestartTime);
- //rectInsertion.Height = diff.TotalMilliseconds / 10;
- backgroundWorkerExchange.ReportProgress(0, exchangeDiff.TotalMilliseconds);
- }
Add Comment
Please, Sign In to add comment