]> git.stg.codes - stg.git/blobdiff - include/stg/utime.h
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
[stg.git] / include / stg / utime.h
index 20da4e432a7081b73c7cf131ed5e1c0642957f24..fe6b3f69d9601d2f737404f78e0bfc31e24196a3 100644 (file)
@@ -164,6 +164,11 @@ struct UTIME: public timeval
     {
     return tv_usec;
     }
     {
     return tv_usec;
     }
+
+    double AsDouble() const
+    {
+    return tv_sec + tv_usec * 1e-6;
+    }
 };
 
 
 };