I’m working in C++.
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:
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();
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?