• 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

Daily archives: October 5th, 2016

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

Timer is important for measuring speed-ups, or elapsed time for comparing different algorithms. We used to import <ctime> and measure the elapsed time with the following code:

However, the clock() function measures the CPU time, not actual time elapsed (which may be much greater), according to this StackOverFlow thread. Hence, here I share my code…


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….