mbgtools-lx  4.2.8
mbghrtime.c File Reference
#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
 

Macro Definition Documentation

◆ MAX_TS_BURST

#define MAX_TS_BURST   1000

Definition at line 73 of file mbghrtime.c.

Referenced by show_hr_timestamp_burst().

◆ MBG_FIRST_COPYRIGHT_YEAR

#define MBG_FIRST_COPYRIGHT_YEAR   2001

Definition at line 67 of file mbghrtime.c.

Referenced by main().

◆ MBG_LAST_COPYRIGHT_YEAR

#define MBG_LAST_COPYRIGHT_YEAR   0

Definition at line 68 of file mbghrtime.c.

Referenced by main().

Function Documentation

◆ do_mbghrtime()

static int do_mbghrtime ( MBG_DEV_HANDLE  dh,
const PCPS_DEV p_dev 
)
static

◆ main()

◆ show_hr_timestamp()

static int show_hr_timestamp ( MBG_DEV_HANDLE  dh)
static

◆ show_hr_timestamp_burst()

static int show_hr_timestamp_burst ( MBG_DEV_HANDLE  dh)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ burst_read

int burst_read
static

Definition at line 76 of file mbghrtime.c.

Referenced by do_mbghrtime(), and main().

◆ do_mbghrtime

MBG_DEV_HANDLER_FNC do_mbghrtime
static

Definition at line 213 of file mbghrtime.c.

Referenced by main().

◆ loops

int loops
static

Definition at line 75 of file mbghrtime.c.

Referenced by main(), show_hr_timestamp(), and show_hr_timestamp_burst().

◆ pname

const char* pname = "mbghrtime"
static

Definition at line 70 of file mbghrtime.c.

Referenced by main(), and usage().

◆ read_raw

int read_raw
static

Definition at line 77 of file mbghrtime.c.

Referenced by main(), show_hr_timestamp(), and show_hr_timestamp_burst().

◆ sleep_secs

long sleep_secs
static

Definition at line 78 of file mbghrtime.c.

Referenced by main(), and show_hr_timestamp().

◆ sleep_usecs

long sleep_usecs
static

Definition at line 79 of file mbghrtime.c.

Referenced by main(), and show_hr_timestamp().

◆ verbose