In the YII framework, such as the created Timer task class Testcommand extends Cconsolecommand
{
Public Function Run ()
{
...
}
}, in this class, you can write multiple methods that require timed execution, such as run, which is a method that needs to be timed, and in this class, create a method public function get (). Timing this file class, is it possible to execute both timing methods at the same time AH
Reply content:
In the YII framework, such as the created Timer task class Testcommand extends Cconsolecommand
{
Public Function Run ()
{
...
}
}, in this class, you can write multiple methods that require timed execution, such as run, which is a method that needs to be timed, and in this class, create a method public function get (). Timing this file class, is it possible to execute both timing methods at the same time AH
- You can write a few more ways.
- You can execute two methods at a time