Following attached Code is Useful as Performance Major to Find Out Total Simulation Time in Different Scenarios.
treenode datanode = param(1);
double tm = time();
return tm;