Hi

I’m looking for a method that can calculate the time that it takes to export a piece of code, i.e. the speed like - O(N)


Something like this (I know this is Java code, but I need it in C++):

Code:
QTimer t = new QTimer();
t.start();
//now a method that calls a method for each tick, eg. for each tick “t”, we call graph.redraw().

//calculations

t.stop();

Can someone please help me?