libH/UtilTime.hpp

Go to the documentation of this file.
00001 
00012 /*
00013   
00014   Copyright (c) 2007, Tim Burrell
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 */
00028 
00029 #ifndef __UtilTime_h
00030 #define __UtilTime_h
00031 
00032 #if HAVE_CONFIG_H
00033 #include "config.h"
00034 #endif
00035 
00037 // Namespace
00039 
00040 namespace H {
00041 
00043 // Class Definition
00045 
00054 class UtilTime {
00055 public:
00056         unsigned long           getElapsedTime();                       
00057         static unsigned long    getTicks();                             
00058         static int              nanoSleep(int nanoSecs);                
00059         static int              nanoSleepSecs(int seconds);             
00060         static void             sleep(float Seconds);                   
00061         void                    updateElapsedTimer();                   
00062         
00063         UtilTime();
00064         virtual ~UtilTime();
00065 
00066 private:
00067         unsigned long           mLastUpdate;                            
00068 };
00069 
00070 } // H namespace
00071 
00072 #endif // __UtilTime_h

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3