|
mbgtools-lx
4.2.8
|
#include <mbgdevio.h>#include <toolutil.h>#include <time.h>#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Macros | |
| #define | MBG_FIRST_COPYRIGHT_YEAR 2001 |
| #define | MBG_LAST_COPYRIGHT_YEAR 0 |
| #define | MAX_TS_BURST 1000 |
Functions | |
| static int | show_hr_timestamp (MBG_DEV_HANDLE dh) |
| static int | show_hr_timestamp_burst (MBG_DEV_HANDLE dh) |
| static int | do_mbghrtime (MBG_DEV_HANDLE dh, const PCPS_DEV *p_dev) |
| static void | usage (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| static const char * | pname = "mbghrtime" |
| static int | loops |
| static int | burst_read |
| static int | read_raw |
| static long | sleep_secs |
| static long | sleep_usecs |
| static int | verbose |
| static MBG_DEV_HANDLER_FNC | do_mbghrtime |
| #define MAX_TS_BURST 1000 |
Definition at line 73 of file mbghrtime.c.
Referenced by show_hr_timestamp_burst().
| #define MBG_FIRST_COPYRIGHT_YEAR 2001 |
Definition at line 67 of file mbghrtime.c.
Referenced by main().
| #define MBG_LAST_COPYRIGHT_YEAR 0 |
Definition at line 68 of file mbghrtime.c.
Referenced by main().
|
static |
Definition at line 189 of file mbghrtime.c.
References burst_read, mbg_chk_dev_has_hr_time, mbg_cond_err_msg(), MBG_ERR_NOT_SUPP_BY_DEV, mbg_rc_is_error, show_hr_timestamp(), and show_hr_timestamp_burst().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 240 of file mbghrtime.c.
References burst_read, do_mbghrtime, loops, MBG_EXIT_CODE_FAIL, MBG_EXIT_CODE_SUCCESS, MBG_EXIT_CODE_USAGE, MBG_FIRST_COPYRIGHT_YEAR, mbg_handle_devices(), MBG_LAST_COPYRIGHT_YEAR, mbg_print_program_info(), mbg_rc_is_success, must_print_usage, pname, read_raw, sleep_secs, sleep_usecs, usage(), and verbose.
|
static |
Definition at line 90 of file mbghrtime.c.
References loops, mbg_cond_err_msg(), mbg_get_hr_time(), mbg_get_hr_time_comp(), mbg_print_hr_time(), read_raw, sleep_secs, sleep_usecs, PCPS_HR_TIME::tstamp, and verbose.
Referenced by do_mbghrtime().
|
static |
Definition at line 143 of file mbghrtime.c.
References loops, MAX_TS_BURST, mbg_cond_err_msg(), mbg_get_hr_time(), mbg_get_hr_time_comp(), mbg_print_hr_time(), read_raw, PCPS_HR_TIME::tstamp, and verbose.
Referenced by do_mbghrtime().
|
static |
Definition at line 218 of file mbghrtime.c.
References mbg_print_device_options(), mbg_print_help_options(), mbg_print_opt_info(), mbg_print_usage_intro(), and pname.
Referenced by main().
|
static |
Definition at line 76 of file mbghrtime.c.
Referenced by do_mbghrtime(), and main().
|
static |
Definition at line 213 of file mbghrtime.c.
Referenced by main().
|
static |
Definition at line 75 of file mbghrtime.c.
Referenced by main(), show_hr_timestamp(), and show_hr_timestamp_burst().
|
static |
Definition at line 70 of file mbghrtime.c.
|
static |
Definition at line 77 of file mbghrtime.c.
Referenced by main(), show_hr_timestamp(), and show_hr_timestamp_burst().
|
static |
Definition at line 78 of file mbghrtime.c.
Referenced by main(), and show_hr_timestamp().
|
static |
Definition at line 79 of file mbghrtime.c.
Referenced by main(), and show_hr_timestamp().
|
static |
Definition at line 80 of file mbghrtime.c.
Referenced by main(), mbg_get_all_ucap_info(), mbg_tlv_create_id(), pcps_time_is_valid(), show_hr_timestamp(), and show_hr_timestamp_burst().