crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

timestamp (237B)


      1 #ifndef _TIMESTAMP_
      2 #define _TIMESTAMP_
      3 
      4 #include "sys/sys"
      5 
      6 class Timestamp {
      7 public:
      8     Timestamp();
      9     Timestamp(int sec_since_epoch);
     10     double elapsed() const;
     11     string desc() const;
     12 
     13 private:
     14     struct timeval tv;
     15 };
     16 
     17 #endif