Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
linux timing functions More...
#include "std.h"
#include <unistd.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... | |
linux timing functions
Definition in file sys_time_arch.h.
|
inlinestatic |
Get the time in milliseconds since startup.
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().
|
inlinestatic |
Get the time in microseconds since startup.
WARNING: overflows after 71min34seconds!
Definition at line 39 of file sys_time_arch.h.
References sys_time::nb_sec, sys_time::nb_sec_rem, and usec_of_cpu_ticks().
Referenced by ahrs_aligner_run(), ahrs_gx3_publish_imu(), aspirin2_subsystem_event(), gps_feed_value(), gps_mtk_msg(), gps_nmea_msg(), gps_parse(), gps_piksi_publish(), gps_sim_hitl_event(), gps_sim_publish(), gps_sirf_msg(), gps_skytraq_msg(), gps_ubx_msg(), handle_ins_msg(), hott_periodic_event(), imu_apogee_event(), imu_aspirin2_event(), imu_aspirin_event(), imu_aspirin_i2c_event(), imu_b2_event(), imu_bebop_event(), imu_drotek2_event(), imu_gl1_i2c_event(), imu_hbmini_event(), imu_krooz_event(), 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_periodic(), imu_ppzuav_event(), imu_px4fmu_event(), imu_um6_publish(), imu_umarim_event(), ins_alt_float_update_baro(), ins_alt_float_update_gps(), ins_vectornav_propagate(), mag_hmc58xx_module_event(), main(), mavlink_send_gps_raw_int(), navdata_publish_imu(), opticflow_module_run(), parse_gps_datalink(), start_message(), stereocam_to_state(), superbitrf_event(), and superbitrf_receive_packet_cb().
|
inlinestatic |
elapsed time in microsecs between two timespecs
Definition at line 61 of file sys_time_arch.h.
Referenced by video_thread_function().
|
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().