Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 75691 invoked from network); 20 Oct 2008 23:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 23:35:55 -0000 Received: (qmail 74040 invoked by uid 500); 20 Oct 2008 23:35:57 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 73994 invoked by uid 500); 20 Oct 2008 23:35:57 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 73985 invoked by uid 99); 20 Oct 2008 23:35:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 16:35:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 23:34:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 47D7F23888EB; Mon, 20 Oct 2008 16:35:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r706458 - /apr/apr/trunk/include/apr_time.h Date: Mon, 20 Oct 2008 23:35:04 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081020233504.47D7F23888EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Mon Oct 20 16:35:03 2008 New Revision: 706458 URL: http://svn.apache.org/viewvc?rev=706458&view=rev Log: A new macro for apr 1.4/2.0, for msec resolution - apr_time_from_sec(x*1000) is clumsy Modified: apr/apr/trunk/include/apr_time.h Modified: apr/apr/trunk/include/apr_time.h URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_time.h?rev=706458&r1=706457&r2=706458&view=diff ============================================================================== --- apr/apr/trunk/include/apr_time.h (original) +++ apr/apr/trunk/include/apr_time.h Mon Oct 20 16:35:03 2008 @@ -72,7 +72,10 @@ /** @return apr_time_t as a msec */ #define apr_time_as_msec(time) ((time) / 1000) -/** @return a second as an apr_time_t */ +/** @return milliseconds as an apr_time_t */ +#define apr_time_from_msec(msec) ((apr_time_t)(msec) * 1000) + +/** @return seconds as an apr_time_t */ #define apr_time_from_sec(sec) ((apr_time_t)(sec) * APR_USEC_PER_SEC) /** @return a second and usec combination as an apr_time_t */