PX4 Firmware
PX4 Autopilot Software http://px4.io
test_time.c File Reference

Tests clocks/timekeeping. More...

#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/posix.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <arch/board/board.h>
#include "tests_main.h"
#include <math.h>
#include <float.h>
#include <drivers/drv_hrt.h>
Include dependency graph for test_time.c:

Go to the source code of this file.

Functions

static hrt_abstime cycletime (void)
 
int test_time (int argc, char *argv[])
 

Detailed Description

Tests clocks/timekeeping.

Definition in file test_time.c.

Function Documentation

◆ cycletime()

static hrt_abstime cycletime ( void  )
static

Definition at line 60 of file test_time.c.

Referenced by test_time().

Here is the caller graph for this function:

◆ test_time()

int test_time ( int  argc,
char *  argv[] 
)

Definition at line 78 of file test_time.c.

References matrix::abs(), cycletime(), hrt_absolute_time(), and hrt_abstime.

Here is the call graph for this function: