Quantum coherence in a single-Cooper-pair box: experiments in the frequency and time domains