utility.c File Reference

#include <stdio.h>
#include <sys/timeb.h>
#include <fcntl.h>
#include <errno.h>
#include "utility.h"

Include dependency graph for utility.c:

Go to the source code of this file.

Functions

int time_stamp (char *fn, char *event)
int16_t millisec_get (void)


Function Documentation

int16_t millisec_get ( void   ) 

Definition at line 25 of file utility.c.

int time_stamp ( char *  fn,
char *  event 
)

Log events to a file with timestamp.

Parameters:
fn Filename to save results to.
event Name of the event.
Returns:
errno Error for file access.
Note:
When calling this from threads, each thread must have a unique filename.

Definition at line 11 of file utility.c.


Generated on Mon Jun 22 21:39:53 2009 for morse2txt by  doxygen 1.5.6