2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.


Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c1/timetst.c File Reference

Detailed Description

Testing timestart and timestop [Sec. 1.7.2].

Definition in file timetst.c.

Go to the source code of this file.


#define REPS   1000000
#define TV_SUBTRACT(t2, t1)


int main (void)

Define Documentation

#define REPS   1000000

Definition at line 26 of file timetst.c.

Referenced by main().

#define TV_SUBTRACT t2,
t1   ) 


(double)(t2).tv_sec + (t2).tv_usec / 1000000.0 -\
      ((double)(t1).tv_sec + (t1).tv_usec / 1000000.0)

Definition at line 27 of file timetst.c.

Referenced by main().

Function Documentation

int main void   ) 

Definition at line 31 of file timetst.c.

References clock(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), getpid(), gettimeofday(), REPS, sleep(), timestart(), timestop(), and TV_SUBTRACT.

Generated on Fri Apr 23 10:57:07 2004 for AUP2 Example Source by doxygen 1.3.1