Getting Time Elapsed
You can check how long it takes to validate an EDI file using the TimeElapsed property of the EDIValidator. The TimeElapsed property will give the number of milliseconds it took to validate the file. The first time the EDIValidator is used it will take a few more milliseconds because aside from validating the EDI file, the EDIValidator has to load the EDI rules. After the EDI rules are loaded it will take significantly less time to validate an EDI 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 ValidationComplete event args. It contains the Milliseconds property in its event args object.