Article: EDIFileScrubber – Getting Time Elapsed

Index

Getting Time Elapsed

Developers can check how long it takes to scrub an EDI file using the Milliseconds property of the FileLoadingEventArgs component. The Milliseconds property will give the number of milliseconds it took to scrub the file.

Subscribe to the FileScrubbingCompleted event. It contains the Milliseconds property in its eventargs object.

Example

scrubber.FileScrubbingCompleted += new EDIFileScrubber.EDIFileScrubbingCompletedEvent(scrubbingCompleted);

private void scrubbingCompleted(object sender, FileLoadingEventArgs e)
{
   MessageBox.Show(e.Milliseconds);
}

Related Articles

Main Categories