From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21212 invoked by alias); 31 Dec 2006 15:34:31 -0000 Received: (qmail 21204 invoked by uid 22791); 31 Dec 2006 15:34:30 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 15:34:26 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1H12hX-0002hK-2R for gdb-patches@sources.redhat.com; Sun, 31 Dec 2006 18:34:24 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1H12hU-0002Zf-A1; Sun, 31 Dec 2006 18:34:16 +0300 From: Vladimir Prus Subject: Re: [PATCH] MI: new timing command To: Nick Roberts , gdb-patches@sources.redhat.com Date: Sun, 31 Dec 2006 15:34:00 -0000 References: <17814.10139.269708.848818@kahikatea.snap.net.nz> <17815.27092.497145.908734@kahikatea.snap.net.nz> User-Agent: KNode/0.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit Message-Id: Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00411.txt.bz2 Nick Roberts wrote: > + static long > + timval_diff (struct timeval start, struct timeval end) > +   { > +     return ((end.tv_sec - start.tv_sec) * 1000000) + > +       (end.tv_usec - start.tv_usec); > +   } Did you really meant to name a function "timval_diff" as opposed to "timeval_diff"? - Volodya