22#include <zephyr/test_asm_inline_other.h>
26#define TICK_SYNCH() k_sleep(K_TICKS(1))
28#define OS_GET_TIME() k_cycle_get_32()
38 timestamp_serialize();
41 uint32_t res = (t >= ts) ? (t - ts) : (ULONG_MAX - ts + t);
#define NSEC_PER_USEC
number of nanoseconds per micorsecond
Definition: sys_clock.h:83
#define MSEC_PER_SEC
number of milliseconds per second
Definition: sys_clock.h:92
#define USEC_PER_MSEC
number of microseconds per millisecond
Definition: sys_clock.h:89
static int64_t k_uptime_delta(int64_t *reftime)
Get elapsed time.
Definition: kernel.h:1801
#define k_cyc_to_ns_floor64(t)
Convert hardware cycles to nanoseconds.
Definition: time_units.h:1429
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__INT64_TYPE__ int64_t
Definition: stdint.h:75
#define OS_GET_TIME()
Definition: timestamp.h:28
static int high_timer_overflow(void)
Definition: timestamp.h:102
static int64_t timestamp_check
Definition: timestamp.h:62
static int bench_test_end(void)
Definition: timestamp.h:80
static void bench_test_init(void)
Definition: timestamp.h:53
#define TICK_SYNCH()
Definition: timestamp.h:26
static uint32_t TIME_STAMP_DELTA_GET(uint32_t ts)
Definition: timestamp.h:33
static void bench_test_start(void)
Definition: timestamp.h:70