timeval.hh

00001 //********************************************************************
00002 //*** POSIX/sys/timeval.hh
00003 //*** Copyright (c) 2002 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: timeval.hh,v 1.5 2009-03-02 14:07:20 mws Exp $
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

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3