Change promptsize calculator.
Add condition to use setcolor.

Signed-off-by: LiuPai <liupai_work@163.com>
Add command execute timer.