This code show how to perform a timing of a piece of your code. This is not intended to replace a rigorous profiling of your code, but could be used to have an insight into the performance of your code. I created a MACRO function to do this job, but you can simply grab the code inside it and put directly into your source code if you don't want to use the macro. It takes as first argument a string used as tag for the timing message on the stdout, and as second argument the code you want to profile.