You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cli use timer 10 mins or large execution process execution time result 1;
example result;
[##########] 100% Complete
parser is finished...
parser is total execution time : 1
[##########] 100% Complete
Finished...
Total execution time : 0,7284
Finished...
Total execution time : 1
use type;
process function;
timer(FUNCTION);
// codes...
call another function {
in function use another timer sample function name parser
timer(FUNCTION);
// codes...
timer(FUNCTION);
$execution_time = timer()->getElapsedTime(FUNCTION);
CLI::write('parser is Finished...', 'green');
CLI::write('parser total execution time : ' . $execution_time, 'blue');
}
Hmm. Unable to recreate locally. I've written some new tests that should account for your use case, and they all pass.
Your example is a little confusing to me so let me know if I didn't test the right thing. The first thing I see from your code is that you're not passing a string to the timer() function, but appear to be passing a constant. Depending on what that evaluates to, that could be causing an issue.
Hi guys,
cli use timer 10 mins or large execution process execution time result 1;
example result;
[##########] 100% Complete
parser is finished...
parser is total execution time : 1
[##########] 100% Complete
Finished...
Total execution time : 0,7284
Finished...
Total execution time : 1
use type;
process function;
timer(FUNCTION);
// codes...
call another function {
in function use another timer sample function name parser
timer(FUNCTION);
// codes...
timer(FUNCTION);
$execution_time = timer()->getElapsedTime(FUNCTION);
CLI::write('parser is Finished...', 'green');
CLI::write('parser total execution time : ' . $execution_time, 'blue');
}
$execution_time = timer()->getElapsedTime(FUNCTION);
CLI::write('Finished...', 'green');
CLI::write('Total execution time : ' . $execution_time, 'blue');
have a nice day
The text was updated successfully, but these errors were encountered: