Paparazzi UAS  v5.14.0_stable-0-g3f680d1
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.


uint32_t get_sys_time_usec (void)
 Get the time in microseconds since startup. More...
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

uint32_t get_sys_time_usec ( void  )

Get the time in microseconds since startup.

WARNING: overflows after 71min34seconds!

current system time as uint32_t

WARNING: overflows after 70min!

microseconds since startup as uint32_t

Definition at line 68 of file sys_time_arch.c.

References sys_time::nb_sec, sys_time::nb_sec_rem, sys_time::nb_tick, startup_time, and usec_of_sys_time_ticks().

Referenced by ahrs_aligner_run(), ahrs_gx3_publish_imu(), ahrs_vectornav_event(), gps_cb(), gps_feed_value(), gps_mtk_msg(), gps_piksi_publish(), gps_sim_hitl_event(), gps_sim_publish(), gps_sirf_msg(), gps_skytraq_msg(), gps_ubx_msg(), gps_udp_parse(), handle_ins_msg(), hott_periodic_event(), imu_analog_periodic(), imu_apogee_event(), imu_aspirin2_event(), imu_aspirin_event(), imu_aspirin_i2c_event(), imu_b2_event(), imu_bebop_event(), imu_disco_event(), imu_drotek2_event(), imu_gl1_event(), imu_hbmini_event(), imu_krooz_event(), imu_krooz_periodic(), imu_mpu9250_event(), imu_mpu_hmc_event(), imu_mpu_i2c_event(), imu_mpu_spi_event(), imu_navgo_event(), imu_navstik_event(), imu_nps_event(), imu_ppzuav_event(), imu_px4_event(), imu_px4fmu_event(), imu_swing_event(), imu_um6_publish(), imu_umarim_event(), ins_alt_float_update_baro(), ins_alt_float_update_gps(), intermcu_parse_msg(), mag_hmc58xx_module_event(), mag_pitot_parse_msg(), main(), mavlink_send_gps_raw_int(), navdata_publish_imu(), nmea_gps_msg(), opticflow_module_run(), parse_gps_datalink(), parse_gps_datalink_local(), parse_gps_datalink_small(), pose_periodic(), pprzlog_tp_init(), range_msg_callback(), send_filter_status(), send_gps_dw1000_small(), stereocam_parse_msg(), superbitrf_event(), superbitrf_receive_packet_cb(), v4l2_capture_thread(), and video_thread_function().

+ Here is the call graph for this function:

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

elapsed time in microsecs between two timespecs

Definition at line 53 of file sys_time_arch.h.

static void sys_time_usleep ( uint32_t  us)

Definition at line 47 of file sys_time_arch.h.