Thursday, June 3, 2010

Measure code execution time in C#

To time a part of the code in a loop, use ResetTimingValue() before you enter the loop. Than use StartTiming() and AddTimingValue() to get the combined execution time of the code in the loop.

This test uses all the functions of the ExecutionTimer:

Tuesday, June 1, 2010

Hide "Extras" by default in Photoshop 7

When you select the Slice tool (or press K) in Photoshop 7, it enables View->Extras and View->Show->Slices. Two small rectangles appear in the upper left corner of the image. One shows "01" and the other shows a sliced image. That becomes the default view every time you open Photoshop. To hide this by default, first uncheck View->Show->Slices and than View->Extras.