Time.h 545 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
// Time.h

#ifndef TIME_H_STUB_2
#define TIME_H_STUB_2

class Time
{
public:
  Time();
  Time(struct timeval const & newData);
  long long toMilliseconds(void) const;
12
  struct timeval * getTimeval(void);
13
  struct timeval const * getTimeval(void) const;
14
  Time operator+(int const & right) const;
15 16 17 18 19 20 21 22
  Time operator-(Time const & right) const;
  bool operator<(Time const & right) const;
  bool operator==(Time const & right) const;
  bool operator!=(Time const & right) const;
private:
  struct timeval data;
};

23 24
Time getCurrentTime(void);

25
#endif