mt.c File Reference

A cross-platform, high-resolution multi-timer API. More...

#include "mt.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  mt_tag
 Internal representation of a MultiTimer. More...

Defines

#define mt_sint64   long long
#define mt_uint64   unsigned mt_sint64
#define NS_PER_SEC   1000000000

Typedefs

typedef struct mt_tag MTimer
 Internal representation of a MultiTimer.

Functions

MultiTimer MtCreate (int count)
 Create, initialize and return a new MultiTimer.
void MtRecord (MultiTimer mt)
 Record a timestamp within a multi-timer.
unsigned long MtGetRelativeNS (MultiTimer mt, int idx)
 Return a specified time difference value in nanoseconds.
void MtDestroy (MultiTimer mt)
 Destroy a multi-timer.


Detailed Description

A cross-platform, high-resolution multi-timer API.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file mt.c.


Define Documentation

#define NS_PER_SEC   1000000000

Referenced by MtGetRelativeNS().


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6