public static void Test() { CodeTimer.Time("TestAdd", 1, () => { TestAdd.Foo(); }); CodeTimer.Time("TestAdd", 1, () => { TestAdd.Foo(); }); CodeTimer.Time("TestAdd", 1, () => { TestAdd.Foo(); }); CodeTimer.Time("TestAdd", 1, () => { TestAdd.Foo(); }); }
public static void Test() { ImageArgb32 src = new ImageArgb32(5000, 6000); System.Drawing.Bitmap dst = new System.Drawing.Bitmap(5000, 6000, System.Drawing.Imaging.PixelFormat.Format32bppArgb); CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); }); CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); }); CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); }); CodeTimer.Time("ToBitmap", 1, () => { src.ToBitmap(dst); }); }
public static void Test() { Bitmap img = new Bitmap(5000, 6000); CodeTimer.Time("Fill", 1, () => { img.Fill(1); }); CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); }); CodeTimer.Time("Fill", 1, () => { img.Fill(1); }); CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); }); CodeTimer.Time("Fill", 1, () => { img.Fill(1); }); CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); }); CodeTimer.Time("Fill", 1, () => { img.Fill(1); }); CodeTimer.Time("FillEx", 1, () => { img.FillEx(2); }); }