X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9701b7ab4dc4cd709ad4dcaa750fc0021f15e231..ac6367f5676cd22834de7e38c6b1e493214b52d6:/include/stg/utime.h?ds=inline

diff --git a/include/stg/utime.h b/include/stg/utime.h
index 20da4e43..fe6b3f69 100644
--- a/include/stg/utime.h
+++ b/include/stg/utime.h
@@ -164,6 +164,11 @@ struct UTIME: public timeval
     {
     return tv_usec;
     }
+
+    double AsDouble() const
+    {
+    return tv_sec + tv_usec * 1e-6;
+    }
 };