# PosixClock.hh

Go to the documentation of this file.

    00001 #ifndef POSIXCLOCK_HH_
    00002 #define POSIXCLOCK_HH_
    00003
    00004 #include "Clock.hh"
    00005 #include <time.h>
    00006
    00007 namespace certi {
    00008
    00012 class CERTI_EXPORT PosixClock : public Clock
    00013 {
    00014 public:
    00025     PosixClock(clockid_t newClockId=CLOCK_REALTIME);
    00030     virtual double getResolution();
    00035     virtual uint64_t getCurrentTicksValue();
    00042     virtual double   tick2NanoSecond(const uint64_t ticks);
    00043     virtual ~PosixClock();
    00044 private:
    00045     struct timespec resolution;
    00046     clockid_t       clockId;
    00047 };
    00048
    00049 }
    00050 #endif /*POSIXCLOCK_HH_*/