Timer
[librt geometry, raytracing]

Collaboration diagram for Timer:


Files

file  timer-nt.c
file  timer42.c
file  timer52brl.c
file  timercos.c
file  timerhep.c
file  timerunix.c

Defines

#define BITSPERBYTE   8
#define BITS(type)   (BITSPERBYTE * (int)sizeof(type))
#define HIBITS   ((short)(1 << BITS(short) - 1))
#define HIBITI   (1 << BITS(int) - 1)
#define HIBITL   (1L << BITS(long) - 1)
#define MAXSHORT   ((short)~HIBITS)
#define MAXINT   (~HIBITI)
#define MAXLONG   (~HIBITL)
#define MAXDOUBLE   0.7237005577332262e+76
#define MAXFLOAT   ((float)0.7237005145e+76)
#define MINDOUBLE   5.3976053469342702e-79
#define MINFLOAT   ((float)MINDOUBLE)
#define _IEEE   0
#define _DEXPLEN   15
#define _HIDDENBIT   0
#define DMINEXP   (-(DMAXEXP + 1))
#define FMINEXP   (-(FMAXEXP + 1))
#define _FEXPLEN   15
#define DSIGNIF   (BITS(double) - _DEXPLEN + _HIDDENBIT - 1)
#define FSIGNIF   (BITS(float) - _FEXPLEN + _HIDDENBIT - 1)
#define DMAXPOWTWO
#define FMAXPOWTWO   ((float)(1L << FSIGNIF - 1))
#define DMAXEXP   ((1 << _DEXPLEN - 1) - 1 + _IEEE)
#define FMAXEXP   ((1 << _FEXPLEN - 1) - 1 + _IEEE)
#define LN_MAXDOUBLE   (M_LN2 * DMAXEXP)
#define LN_MINDOUBLE   (M_LN2 * (DMINEXP - 1))
#define H_PREC   (DSIGNIF % 2 ? (1L << DSIGNIF/2) * M_SQRT2 : 1L << DSIGNIF/2)
#define X_EPS   (1.0/H_PREC)
#define X_PLOSS   ((double)(long)(M_PI * H_PREC))
#define X_TLOSS   (M_PI * DMAXPOWTWO)
#define M_LN2   0.69314718055994530942
#define M_PI   3.14159265358979323846
#define M_SQRT2   1.41421356237309504880
#define MAXBEXP   DMAXEXP
#define MINBEXP   DMINEXP
#define MAXPOWTWO   DMAXPOWTWO
#define POW1_25LEN   7
#define STORE_PTR
#define GOT_DIGIT
#define RET_ZERO(val)   if (!val) return (0.0)
#define HZ   60
#define DEFAULT_HZ   yes

Functions

void rt_prep_timer (void)
double rt_get_timer (struct bu_vls *vp, double *elapsed)
double rt_read_timer (char *str, int len)
double rt_read_timer (char *str, len)
long time ()
 bzero (str, n)
 perror (char *str)
 chmod (char *str, val)
char * sbrk (i)
double ldexp ()
double atof (char *p)
long time (time_t *)

Variables

time_t time0

Define Documentation

#define BITSPERBYTE   8
 

Definition at line 126 of file timercos.c.

#define BITS type   )     (BITSPERBYTE * (int)sizeof(type))
 

Definition at line 127 of file timercos.c.

#define HIBITS   ((short)(1 << BITS(short) - 1))
 

Definition at line 130 of file timercos.c.

#define HIBITI   (1 << BITS(int) - 1)
 

Definition at line 131 of file timercos.c.

#define HIBITL   (1L << BITS(long) - 1)
 

Definition at line 132 of file timercos.c.

#define MAXSHORT   ((short)~HIBITS)
 

Definition at line 135 of file timercos.c.

#define MAXINT   (~HIBITI)
 

Definition at line 136 of file timercos.c.

#define MAXLONG   (~HIBITL)
 

Definition at line 137 of file timercos.c.

Referenced by atof().

#define MAXDOUBLE   0.7237005577332262e+76
 

Definition at line 162 of file timercos.c.

#define MAXFLOAT   ((float)0.7237005145e+76)
 

Definition at line 163 of file timercos.c.

#define MINDOUBLE   5.3976053469342702e-79
 

Definition at line 164 of file timercos.c.

#define MINFLOAT   ((float)MINDOUBLE)
 

Definition at line 165 of file timercos.c.

#define _IEEE   0
 

Definition at line 166 of file timercos.c.

#define _DEXPLEN   15
 

Definition at line 167 of file timercos.c.

#define _HIDDENBIT   0
 

Definition at line 168 of file timercos.c.

#define DMINEXP   (-(DMAXEXP + 1))
 

Definition at line 169 of file timercos.c.

#define FMINEXP   (-(FMAXEXP + 1))
 

Definition at line 170 of file timercos.c.

#define _FEXPLEN   15
 

Definition at line 172 of file timercos.c.

#define DSIGNIF   (BITS(double) - _DEXPLEN + _HIDDENBIT - 1)
 

Definition at line 173 of file timercos.c.

#define FSIGNIF   (BITS(float) - _FEXPLEN + _HIDDENBIT - 1)
 

Definition at line 174 of file timercos.c.

#define DMAXPOWTWO
 

Value:

((double)(1L << BITS(long) - 2) * \
                                (1L << DSIGNIF - BITS(long) + 1))

Definition at line 175 of file timercos.c.

#define FMAXPOWTWO   ((float)(1L << FSIGNIF - 1))
 

Definition at line 177 of file timercos.c.

#define DMAXEXP   ((1 << _DEXPLEN - 1) - 1 + _IEEE)
 

Definition at line 178 of file timercos.c.

Referenced by atof().

#define FMAXEXP   ((1 << _FEXPLEN - 1) - 1 + _IEEE)
 

Definition at line 179 of file timercos.c.

#define LN_MAXDOUBLE   (M_LN2 * DMAXEXP)
 

Definition at line 180 of file timercos.c.

#define LN_MINDOUBLE   (M_LN2 * (DMINEXP - 1))
 

Definition at line 181 of file timercos.c.

#define H_PREC   (DSIGNIF % 2 ? (1L << DSIGNIF/2) * M_SQRT2 : 1L << DSIGNIF/2)
 

Definition at line 182 of file timercos.c.

#define X_EPS   (1.0/H_PREC)
 

Definition at line 183 of file timercos.c.

#define X_PLOSS   ((double)(long)(M_PI * H_PREC))
 

Definition at line 184 of file timercos.c.

#define X_TLOSS   (M_PI * DMAXPOWTWO)
 

Definition at line 185 of file timercos.c.

#define M_LN2   0.69314718055994530942
 

Definition at line 186 of file timercos.c.

#define M_PI   3.14159265358979323846
 

Definition at line 187 of file timercos.c.

#define M_SQRT2   1.41421356237309504880
 

Definition at line 188 of file timercos.c.

#define MAXBEXP   DMAXEXP
 

Definition at line 189 of file timercos.c.

#define MINBEXP   DMINEXP
 

Definition at line 190 of file timercos.c.

#define MAXPOWTWO   DMAXPOWTWO
 

Definition at line 191 of file timercos.c.

#define POW1_25LEN   7
 

Definition at line 196 of file timercos.c.

Referenced by atof().

#define STORE_PTR
 

Definition at line 200 of file timercos.c.

Referenced by atof().

#define GOT_DIGIT
 

Definition at line 201 of file timercos.c.

Referenced by atof().

#define RET_ZERO val   )     if (!val) return (0.0)
 

Definition at line 202 of file timercos.c.

Referenced by atof().

#define HZ   60
 

Definition at line 63 of file timerunix.c.

Referenced by bu_cpulimit_get(), and bu_cpulimit_set().

#define DEFAULT_HZ   yes
 

Definition at line 64 of file timerunix.c.


Function Documentation

void rt_prep_timer void   ) 
 

Definition at line 50 of file timer-nt.c.

References start, time(), and time0.

Here is the call graph for this function:

double rt_get_timer struct bu_vls vp,
double *  elapsed
 

Definition at line 66 of file timer-nt.c.

References BU_CK_VLS, bu_vls_printf(), bu_vls_strcat(), start, time(), time0, and void().

Referenced by rt_read_timer().

Here is the call graph for this function:

double rt_read_timer char *  str,
int  len
 

Definition at line 101 of file timer-nt.c.

References bu_vls_addr(), bu_vls_init(), bu_vls_strlen(), and rt_get_timer().

Here is the call graph for this function:

double rt_read_timer char *  str,
len 
 

Definition at line 83 of file timer52brl.c.

References time0, and void().

Here is the call graph for this function:

long time  ) 
 

Referenced by dgo_E_cmd(), rt_get_timer(), and rt_prep_timer().

bzero str  ,
 

Definition at line 93 of file timercos.c.

perror char *  str  ) 
 

Definition at line 101 of file timercos.c.

Referenced by bn_print_table_and_tabdata(), bn_read_table_and_tabdata(), bn_tabdata_binary_read(), bn_table_read(), bn_table_write(), bu_avail_cpus(), bu_cpulimit_get(), bu_cpulimit_set(), bu_free_mapped_files(), bu_fwrite_external(), bu_open_mapped_file(), bu_setlinebuf(), bu_vls_fwrite(), bu_vls_write(), bu_whereis(), bu_which(), db_create(), db_read(), db_write(), dgo_nirt_cmd(), F(), main(), nmg_cut_loop(), nmg_evaluate_boolean(), nmg_face_lu_plot(), nmg_face_plot(), nmg_pl_2fu(), nmg_pl_comb_fu(), nmg_pl_hitmiss_list(), nmg_pl_isect(), nmg_pl_lu_around_eu(), nmg_plot_lu_ray(), nmg_plot_ray_face(), nmg_stash_model_to_file(), rt_hf_import(), rt_plot_cell(), rt_regionfix(), rt_split_cmd(), rt_vol_import(), rt_vol_import5(), wdb_concat_cmd(), wdb_dup_cmd(), and wdb_prep_dbip().

chmod char *  str,
val 
 

Definition at line 106 of file timercos.c.

Referenced by bu_get_public_cpus().

char* sbrk  ) 
 

Definition at line 111 of file timercos.c.

Referenced by bu_open_mapped_file(), and bu_realloc().

double ldexp  ) 
 

double atof char *  p  ) 
 

Definition at line 205 of file timercos.c.

References DMAXEXP, GOT_DIGIT, MAXLONG, POW1_25LEN, RET_ZERO, and STORE_PTR.

Referenced by bn_cmd_noise(), bn_cmd_noise_perlin(), bn_cmd_noise_slice(), db_parse_1anim(), do_grid(), do_quad(), do_tri(), rt_cline_tcladjust(), rt_ebm_tcladjust(), rt_pipe_tcladjust(), tcl_obj_to_fastf_array(), wdb_bot_decimate_cmd(), wdb_do_list(), wdb_nmg_collapse_cmd(), wdb_smooth_bot_cmd(), and wdb_track_cmd().

long time time_t *   ) 
 


Variable Documentation

time_t time0
 

Definition at line 44 of file timer-nt.c.

Referenced by rt_get_timer(), rt_prep_timer(), and rt_read_timer().


Generated on Mon Sep 18 01:25:46 2006 for BRL-CAD by  doxygen 1.4.6