mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-29 18:41:34 +00:00
2011-05-27 Bo Hansen <mdboha@gmail.com>
PR 1776/networking
* libnetworking/rtems/rtems_glue.c: Higher resolution microtime()
for SO_TIMESTAMP.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2011-05-27 Bo Hansen <mdboha@gmail.com>
|
||||||
|
|
||||||
|
PR 1776/networking
|
||||||
|
* libnetworking/rtems/rtems_glue.c: Higher resolution microtime()
|
||||||
|
for SO_TIMESTAMP.
|
||||||
|
|
||||||
2011-05-25 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-05-25 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* include/rtems/bspIo.h, include/rtems/concat.h,
|
* include/rtems/bspIo.h, include/rtems/concat.h,
|
||||||
|
|||||||
@@ -676,11 +676,7 @@ rtems_status_code rtems_bsdnet_event_receive (
|
|||||||
void
|
void
|
||||||
microtime (struct timeval *t)
|
microtime (struct timeval *t)
|
||||||
{
|
{
|
||||||
rtems_interval now;
|
rtems_clock_get_tod_timeval(t);
|
||||||
|
|
||||||
now = rtems_clock_get_ticks_since_boot();
|
|
||||||
t->tv_sec = now / rtems_bsdnet_ticks_per_second;
|
|
||||||
t->tv_usec = (now % rtems_bsdnet_ticks_per_second) * rtems_bsdnet_microseconds_per_tick;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long
|
unsigned long
|
||||||
|
|||||||
Reference in New Issue
Block a user