From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2CuZ-00056R-Fv for qemu-devel@nongnu.org; Wed, 14 Apr 2010 20:26:27 -0400 Received: from [140.186.70.92] (port=50474 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2CuY-000555-7g for qemu-devel@nongnu.org; Wed, 14 Apr 2010 20:26:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2CuT-000793-Ff for qemu-devel@nongnu.org; Wed, 14 Apr 2010 20:26:26 -0400 Received: from fg-out-1718.google.com ([72.14.220.158]:51395) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2CuT-00078j-Av for qemu-devel@nongnu.org; Wed, 14 Apr 2010 20:26:21 -0400 Received: by fg-out-1718.google.com with SMTP id 16so2155634fgg.10 for ; Wed, 14 Apr 2010 17:26:20 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4BC65D29.8030809@redhat.com> Date: Thu, 15 Apr 2010 02:26:17 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1271238922-10008-1-git-send-email-kraxel@redhat.com> <1271238922-10008-12-git-send-email-kraxel@redhat.com> <4BC64C48.80104@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RfC PATCH 11/11] spice: add audio List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Gerd Hoffmann , qemu-devel@nongnu.org On 04/15/2010 02:13 AM, malc wrote: >>>>> > > > > +static uint64_t get_monotonic_time(void) >>>>> > > > > +{ >>>>> > > > > + struct timespec time_space; >>>>> > > > > + clock_gettime(CLOCK_MONOTONIC,&time_space); >>> > > a. The presence of monotonic clock is not guranteed >> > >> > There is qemu_get_clock_ns(rt_clock). > Sorry, but what does it have to do with anything? It is exactly the same as Gerd's function plus a fallback if no monotonic clock is available. Paolo