From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 773B6A054F; Fri, 5 Mar 2021 18:50:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0346622A3F4; Fri, 5 Mar 2021 18:50:25 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 8C14322A33F for ; Fri, 5 Mar 2021 18:50:23 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1061) id 80CBB20B83EA; Fri, 5 Mar 2021 09:50:22 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 80CBB20B83EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1614966622; bh=gv42opWKAhs9FUlipqACc0yyqEMrqs7Tbz2EA4TD4c0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gNel3PLw/6tqwa9B8Pv5zY7hNWDut3mFMGpuonh7tM8yZum3AVAnS3mZ+jzdtv4m3 PLwIbuA7RmIubU6N5IVGoT2pPvGKVk94JDE6O1P+ikdGGP1nMnqTL7iPlQcTJVLWYk Ju8UPuLwpmE00oXtP+nKzk+7Ki+7iAdNCYyoXHG8= Date: Fri, 5 Mar 2021 09:50:22 -0800 From: Jie Zhou To: Dmitry Kozlyuk Cc: dev@dpdk.org, Tyler Retzlaff , Mike Wells , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam , Ray Kinsella , Neil Horman Message-ID: <20210305175022.GA2095@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20210214012013.23165-1-dmitry.kozliuk@gmail.com> <20210214021616.26970-1-dmitry.kozliuk@gmail.com> <20210214021616.26970-2-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210214021616.26970-2-dmitry.kozliuk@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [dpdk-dev] [PATCH v2 1/6] eal: add internal API for current time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sun, Feb 14, 2021 at 05:16:11AM +0300, Dmitry Kozlyuk wrote: > Many PMDs use POSIX gettimeofday(). Add rte_time_get_us() function > to obtain current time with microsecond precision on all platforms. > > Signed-off-by: Dmitry Kozlyuk > --- > lib/librte_eal/include/rte_time.h | 17 +++++++++++++++++ > lib/librte_eal/rte_eal_exports.def | 1 + > lib/librte_eal/unix/eal_unix_timer.c | 13 +++++++++++++ > lib/librte_eal/version.map | 1 + > lib/librte_eal/windows/eal_timer.c | 21 ++++++++++++++++++++- > 5 files changed, 52 insertions(+), 1 deletion(-) > Acked-by: Jie Zhou