Simple performance measurements for C++