]> git.saurik.com Git - apple/security.git/blobdiff - cdsa/cdsa_utilities/timeflow.h
Security-163.tar.gz
[apple/security.git] / cdsa / cdsa_utilities / timeflow.h
index 8dfb6202d34ce766f989518f855cb509f059d8c2..b2b65572c8debf77d60a5fcb4718032cee08c607 100644 (file)
@@ -83,6 +83,7 @@ public:
     Absolute() { }                                             // uninitialized
     Absolute(time_t t) { mValue = t; } // from time_t
     Absolute(const struct timeval &tv);        // from timeval
+       Absolute(const struct timespec &ts); // from timespec
     
     // *crement operators
     Absolute &operator += (Interval rel)       { mValue += rel.mValue; return *this; }
@@ -98,6 +99,7 @@ public:
     
     // express as conventional (absolute!) time measures
     operator struct timeval() const;
+       operator struct timespec() const;
     operator time_t () const                           { return time_t(mValue); }
 
     // internal form for debugging ONLY