Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcTime.h

00001 //           ///          //                                        Mx clientSDK
00002 //          /////        ////                    Mx Crossplatform Client Library
00003 //         /// XXX     XXX ///
00004 //        ///    XXX XXX    ///     $RCSfile: mxcpcTime.h,v $
00005 //       ///       XXX       ///     $Revision: 1.2 $
00006 //      ///      XXX XXX      ///     $Date: 2006/01/16 15:37:00 $
00007 //     ////    XXX     XXX    ////     $Author: cvs-kai $
00008 //    ////                     ////
00009 //   ////  M  O  B  O  T  I  X  ////////////////////////////////////////////////
00010 //  //// Security Vision Systems //////////////////////////////////////////////
00011 //                                                                          //
00012 //  Copyright (C) 2005 - 2006, MOBOTIX AG, Germany                         //
00013 //  This software is made available under the BSD licence. Please refer   //
00014 //  to the file LICENCE.TXT contained in this distribution for details.  //
00015 //                                                                      //
00016 //  /////////////////////////////////////////////////////////////////////
00017 
00018 
00019 
00020 #ifndef __MXCPC_TIME_H__
00021 #define __MXCPC_TIME_H__
00022 
00023 
00024 
00025 #include <sys/time.h>
00026 
00027 
00028 
00029 //! Measures time in milliseconds.
00030 /*!
00031  *  \ingroup mxcpc_core
00032  */
00033 class mxcpcTime {
00034 
00035  private:
00036   //! Only used on UNIX. 
00037   struct timeval BaseTime;
00038   //! Only used on WINDOWS
00039   unsigned long BaseTicks;
00040   
00041  public:
00042   mxcpcTime();
00043   
00044  public:
00045   //! Sets the base time to the current time.
00046   void setBaseTime(void);
00047   //! Returns the number of milliseconds elapsed since the last call to 
00048   //! elapsed() or setBaseTime().
00049   int elapsed(void);
00050 };
00051 
00052 
00053 
00054 #endif   // __MXCPC_TIME_H__
00055 

Generated on Fri Jan 20 13:33:34 2006 for mxcpc by  doxygen 1.4.4