WinClock.cc

Go to the documentation of this file.
00001 #include "WinClock.hh"
00002 #include <iostream>
00003 #include <stdlib.h>
00004 #include <string.h>
00005 #include <time.h>
00006 
00007 namespace certi {
00008 
00009 WinClock::WinClock() : Clock("WinClock")
00010 {   
00011     resolution = 1.0e9 / CLOCKS_PER_SEC ;
00012 }
00013 
00014 double WinClock::getResolution() 
00015 {
00016    return resolution;
00017 }
00018 
00019 uint64_t WinClock::getCurrentTicksValue() 
00020 {
00021   return static_cast<uint64_t>(clock());
00022 }
00023     
00024 double WinClock::tick2NanoSecond(const uint64_t ticks) 
00025 {
00026 return resolution*ticks;
00027 }
00028 
00029 WinClock::~WinClock()
00030 {
00031 }
00032 
00033 }

Generated on Thu Apr 30 15:53:50 2009 for CERTIDeveloperDocumentation by doxygen 1.5.5