• Interactive Poisson Blending on GPU
    Interactive Poisson Blending on GPU
  • 404 Not Found In Two Triangles
    404 Not Found In Two Triangles
  • Simplest and Fastest GLSL Edge Detection using Fwidth
    Simplest and Fastest GLSL Edge Detection using Fwidth

Monthly archives: October, 2016

Timer: How to Measure Execution Time in C++ 11

Timer is important for measuring speed-ups or elapsed time for custom algorithms. We used to import <ctime> and measure time with:

However, clock() measures CPU time, not actual time elapsed (which may be much greater) according to this StackOverFlow. Hence, here provides my code snippets to measure execution time in C++ as a DebugTimer Class….


Recover my Favorite Windows Photo Viewer on Windows 10

It’s annoying that the original Windows Photo Viewer disappeared on a newly installed Windows 10 system. A quick fix is as follows: Create a new file called whatevername.reg and paste the following registry code into the file:

Next right click any image file -> property -> modify the default viewer -> find Windows Photo Viewer….