EyeSeeSharp
EyeSeeSharp

Reputation: 645

FileSystem.CopyFile, getting Elapsed Time

I'm currently importing the using Microsoft.VisualBasic.FileIO; in my project to utilize FileSystem.CopyFile like so:

FileSystem.CopyFile(sourceFile, destFile, UIOption.AllDialogs);

Does this library support a way to extract the elapsed time of the file copy?

Ex. Returning an int of how many seconds the transfer took?

Any help is appreciated, thanks!

Upvotes: 0

Views: 154

Answers (1)

Joey
Joey

Reputation: 354734

Create a Stopwatch, start it, start your copy, stop the stopwatch and look at the Elapsed property.

Upvotes: 1

Related Questions