Measuring encoding and decoding time of format images #910
-
Hello So, if I want measure encoding time, I need to read the image, convert to target format and measure time for the convert operation. For decoding time, I need only measure time for reading the image, in target format, as a var defaultImage = new MagickImage("i1.png");
var encodingTime = Stopwatch.StartNew();
defaultImage.Write($"i1.jpg");
encodingTime.Stop();
var decodingTime = Stopwatch.StartNew();
var targetImage = new MagickImage("i1.jpg");
decodingTime.Stop(); However i am not sure that, my thinking is correct, and I have some doubts. I'm sorry if these questions seem easy, I just want to know, if I'm doing something wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Those are indeed the correct methods to measure encoding and decoding. |
Beta Was this translation helpful? Give feedback.
Those are indeed the correct methods to measure encoding and decoding.