Timer.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2003-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
00008 //  AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
00009 //  WORKS WHICH INCORPORATE IT.
00010 //
00011 //  AUTODESK PROVIDES THE CODE ON AN "AS-IS" BASIS
00012 //  AND EXPLICITLY DISCLAIMS ANY LIABILITY, INCLUDING
00013 //  CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00014 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00015 //
00016 //  Use, duplication, or disclosure by the U.S. Government is subject to
00017 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00018 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00019 //  Data and Computer Software), as applicable.
00020 //
00021 
00022 
00023 #ifndef _DWFCORE_TIMER_H
00024 #define _DWFCORE_TIMER_H
00025 
00030 
00031 #include "dwfcore/Core.h"
00032 
00033 
00034 namespace DWFCore
00035 {
00036 
00088 class DWFTimer : virtual public DWFCoreMemory
00089 {
00090 
00091 public:
00092 
00098     _DWFCORE_API 
00099     DWFTimer()
00100         throw();
00101 
00108     _DWFCORE_API 
00109     DWFTimer( const DWFTimer& rTimer )
00110         throw();
00111 
00118     _DWFCORE_API 
00119     DWFTimer& operator=( const DWFTimer& rTimer )
00120         throw();
00121 
00127     _DWFCORE_API 
00128     ~DWFTimer()
00129         throw();
00130 
00137     _DWFCORE_API 
00138     static unsigned long Tick32()
00139         throw();
00140 
00147     _DWFCORE_API 
00148     static uint64_t Tick64()
00149         throw();
00150 
00178     _DWFCORE_API 
00179     void start()
00180         throw();
00181 
00188     _DWFCORE_API 
00189     unsigned long tick32()
00190         throw();
00191 
00198     _DWFCORE_API 
00199     uint64_t tick64()
00200         throw();
00201 
00206     _DWFCORE_API 
00207     void stop()
00208         throw();
00209 
00216     _DWFCORE_API 
00217     unsigned long timer32()
00218         throw();
00219 
00226     _DWFCORE_API 
00227     uint64_t timer64()
00228         throw();
00229 
00230 private:
00231 
00232     uint64_t _nTick;
00233 };
00234 
00235 
00236 }
00237 
00238 
00239 #endif
00240 
00241 

Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5