A dog can take away your bad mood sooner than you think.