Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_time_arch.h File Reference

linux timing functions More...

#include "std.h"
#include <unistd.h>
+ Include dependency graph for sys_time_arch.h:

Go to the source code of this file.

Functions

static uint32_t get_sys_time_usec (void)
 Get the time in microseconds since startup. More...
 
static uint32_t get_sys_time_msec (void)
 Get the time in milliseconds since startup. More...
 
static void sys_time_usleep (uint32_t us)
 
static unsigned int sys_time_elapsed_us (struct timespec *prev, struct timespec *now)
 elapsed time in microsecs between two timespecs More...
 

Detailed Description

linux timing functions

Definition in file sys_time_arch.h.

Function Documentation

static uint32_t get_sys_time_msec ( void  )
inlinestatic

Get the time in milliseconds since startup.

Returns
milliseconds since startup as uint32_t

Definition at line 49 of file sys_time_arch.h.

References msec_of_cpu_ticks(), sys_time::nb_sec, and sys_time::nb_sec_rem.

Referenced by gps_piksi_event(), hackhd_command(), hackhd_periodic(), mavlink_send_attitude(), mavlink_send_attitude_quaternion(), mavlink_send_global_position_int(), mavlink_send_local_position_ned(), mavlink_send_rc_channels(), mavlink_send_system_time(), periodic_2Hz_openlog(), sbp_pos_ecef_callback(), and tunnel_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static unsigned int sys_time_elapsed_us ( struct timespec *  prev,
struct timespec *  now 
)
inlinestatic

elapsed time in microsecs between two timespecs

Definition at line 61 of file sys_time_arch.h.

Referenced by video_thread_function().

+ Here is the caller graph for this function:

static void sys_time_usleep ( uint32_t  us)
inlinestatic

Definition at line 55 of file sys_time_arch.h.

Referenced by cyrf6936_init(), main(), pcap01_init(), radio_control_spektrum_try_bind(), w5100_init(), xbee_init(), and xbee_try_to_enter_api().

+ Here is the caller graph for this function: