EDIFileScrubber – Getting Time Elapsed


    Getting Time Elapsed

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

    There are two ways to get the elapsed time. One way is through the TimeElapsed property. The other way is to subscribe to the FileScrubbingCompleted event. It contains the Milliseconds property in its eventargs object.

    Example 1

    // Use the TimeElapsed property after loading

    Example 2

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

    private void scrubbingCompleted(object sender, FileLoadingEventArgs e)
    in EDI File Scrubber
    Did this article answer your question?