big refactor of zsh : count time + help refactor into array