00001
00002
00003
00004
00005
00006
00007 #include <sys/time.h>
00008 #include <iosfwd>
00009
00010 #ifndef FATALMIND_POSIX_TIMEVAL
00011 #define FATALMIND_POSIX_TIMEVAL
00012
00013 namespace POSIX {
00014 class timeval: public ::timeval
00015 {
00016 public:
00017 timeval();
00018 ~timeval();
00019
00020 timeval& operator+=(const timeval&);
00021 timeval& operator-=(const timeval&);
00022
00023 operator float() const;
00024 friend std::ostream& operator<<(std::ostream&, const timeval&);
00025 friend timeval operator-(const timeval&, const timeval&);
00026 };
00027
00028 std::ostream& operator<<(std::ostream&, const timeval&);
00029
00030 }
00031 #endif