Set last command time before executing command