Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
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.
|
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().
|
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.