Tagged: c++

Measuring runtime in milliseconds using the C++ 11 chrono library 1

Measuring runtime in milliseconds using the C++ 11 chrono library

I have been playing around with the new C++ 11 standard. It includes a nice new library called chrono which includes some useful clocks and timers. Below is an example of some macros you...

Getting started with Google Test (GTest) on Ubuntu 40

Getting started with Google Test (GTest) on Ubuntu

Google test is a framework for writing C++ unit tests. In this short post, I explain how to set it up in Ubuntu. Start by installing the gtest development package: sudo apt-get install libgtest-devsudo...