> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dmitry Kozlyuk
> Sent: Tuesday, March 16, 2021 9:08 PM
>
> 2021-03-16 11:59 (UTC-0700), Stephen Hemminger:
> > On Sun, 14 Feb 2021 05:16:11 +0300
> > Dmitry Kozlyuk wrote:
> >
> > > +rte_time_get_us(struct rte_time_us *now)
> > > +{
> > > + s
2021-03-16 11:59 (UTC-0700), Stephen Hemminger:
> On Sun, 14 Feb 2021 05:16:11 +0300
> Dmitry Kozlyuk wrote:
>
> > +rte_time_get_us(struct rte_time_us *now)
> > +{
> > + struct timeval sys;
> > +
> > + gettimeofday(&sys, NULL);
> > + now->sec = sys.tv_sec;
> > + now->usec = sys.tv_usec;
>
On Sun, 14 Feb 2021 05:16:11 +0300
Dmitry Kozlyuk wrote:
> +rte_time_get_us(struct rte_time_us *now)
> +{
> + struct timeval sys;
> +
> + gettimeofday(&sys, NULL);
> + now->sec = sys.tv_sec;
> + now->usec = sys.tv_usec;
> +}
Why would drivers want the default (wall clock) time in
14/02/2021 03:16, Dmitry Kozlyuk:
> Many PMDs use POSIX gettimeofday(). Add rte_time_get_us() function
> to obtain current time with microsecond precision on all platforms.
Please could you replace the current use of gettimeofday?
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 +
Many PMDs use POSIX gettimeofday(). Add rte_time_get_us() function
to obtain current time with microsecond precision on all platforms.
Acked-by: Nick Connolly
6 matches
Mail list logo