I had written a small program below to understand the CPU sampling feature in the visual studio 2019 profiler:
#include #include