HOPS
HOPS class reference
Macros | Functions | Variables
sc_time.c File Reference
#include <assert.h>
#include <sys/time.h>
#include <math.h>
#include "hetetimecode.h"
#include "time_float_type.h"

Macros

#define TVP2USEC(t)   ((HTLdbl)((t)->tv_sec)*(1E6)+(HTLdbl)((t)->tv_usec))
 

Functions

unsigned int get_sc_time (time_code *tc)
 
void get_sc_time_array (IPP_word time[4])
 
int has_this_time_passed (time_code *time)
 
int time_cmp (time_code *time1, time_code *time2)
 

Variables

unsigned short Ht_hete_epoch
 

Macro Definition Documentation

◆ TVP2USEC

#define TVP2USEC (   t)    ((HTLdbl)((t)->tv_sec)*(1E6)+(HTLdbl)((t)->tv_usec))

Function Documentation

◆ get_sc_time()

unsigned int get_sc_time ( time_code tc)

◆ get_sc_time_array()

void get_sc_time_array ( IPP_word  time[4])

◆ has_this_time_passed()

int has_this_time_passed ( time_code time)

◆ time_cmp()

int time_cmp ( time_code time1,
time_code time2 
)

Variable Documentation

◆ Ht_hete_epoch

unsigned short Ht_hete_epoch
extern