Azinix

util.c File Reference

Variety of utility functions for timing analysis. More...

#include "util.h"

Go to the source code of this file.

Functions

void util_set_processor_frequency ()
void util_time (char *mesg)
u_int32_t util_time_to_ticks (double secs)
 Convert time in seconds to machine ticks; use in conjunction with rdtsc-type instructions.
int test_time ()
array_tutil_time_stamp_init (int N)
void util_time_stamp_set (array_t *timeStamps, int i)
void util_time_stamp_print (array_t *timeStamps)

Variables

double PROCESSOR_FREQUENCY = 1000000000.0


Detailed Description

Variety of utility functions for timing analysis.

Definition in file util.c.


Function Documentation

int test_time (  ) 

Definition at line 155 of file util.c.

void util_set_processor_frequency (  ) 

Definition at line 41 of file util.c.

void util_time ( char *  mesg  ) 

Definition at line 97 of file util.c.

array_t* util_time_stamp_init ( int  N  ) 

Definition at line 170 of file util.c.

void util_time_stamp_print ( array_t timeStamps  ) 

Definition at line 194 of file util.c.

void util_time_stamp_set ( array_t timeStamps,
int  i 
)

Definition at line 183 of file util.c.

u_int32_t util_time_to_ticks ( double  secs  ) 

Convert time in seconds to machine ticks; use in conjunction with rdtsc-type instructions.

Convert time in seconds to machine ticks; use in conjunction with rdtsc-type instructions

Definition at line 146 of file util.c.


Variable Documentation

double PROCESSOR_FREQUENCY = 1000000000.0

Definition at line 12 of file util.c.