[ClavaLaraApi] Uses Timer.isPrint
@@ -129,8 +129,10 @@ Timer.prototype._time_cpp = function($start, prefix, $end) {
// Log time information
+ if(this.print) {
logger.log($timingResultDecl);
}
+}
Timer.prototype._time_c = function($start, prefix, $end) {
@@ -249,8 +251,10 @@ Timer.prototype._time_c = function($start, prefix, $end) {
// Log time information
+ if(this.print) {
logger.log($timingResultDecl);
}
+}
//C codedefs
// Windows
