Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

tnt_stopwatch.h

Go to the documentation of this file.
00001 /*
00002 *
00003 * Mathematical and Computational Sciences Division
00004 * National Institute of Technology,
00005 * Gaithersburg, MD USA
00006 *
00007 *
00008 * This software was developed at the National Institute of Standards and
00009 * Technology (NIST) by employees of the Federal Government in the course
00010 * of their official duties. Pursuant to title 17 Section 105 of the
00011 * United States Code, this software is not subject to copyright protection
00012 * and is in the public domain.  NIST assumes no responsibility whatsoever for
00013 * its use by other parties, and makes no guarantees, expressed or implied,
00014 * about its quality, reliability, or any other characteristic.
00015 *
00016 */
00017 
00018 
00019 
00020 #ifndef STOPWATCH_H
00021 #define STOPWATCH_H
00022 
00023 // for clock() and CLOCKS_PER_SEC
00024 #include <time.h>
00025 
00026 
00027 namespace TNT
00028 {
00029 
00030 
00046 class Stopwatch 
00047 {
00048     public:
00053         Stopwatch();
00054 
00055 
00059         inline void start();
00064         inline double stop();
00065 
00069                 inline double read();
00070                 
00075                 inline void resume();
00076 
00081                 inline int running();
00082 };
00083 
00084 
00085 }
00086 #endif
00087     
00088 
00089             

Generated at Thu Jun 26 17:26:14 2003 for Template Numerical Toolkit (TNT) by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001