I am very curious about run time/speed about codes in ms visual studio.
As instance,
1. code:
byte[] buffer = new byte[4096]; var p = System.IO.Directory.GetFiles(directoryName); 2. code
var entry = new ZipEntry(Path.GetFileName(file)); entry.DateTime = DateTime.Now; If i run 1. code ı want to see "it's running time/speed 0.03 seconds"
If i run 2. code ı want to see "it's running time/speed 0.06 seconds"
Is there anything to calculate running time/speed of codes in c# without using timer ?
Any help will be appreciated.
Thanks.
byte[]example? ... what purpose does that serve? ... Also, look at theStopwatch.