X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9701b7ab4dc4cd709ad4dcaa750fc0021f15e231..6559a5e4376e705b8052162a67f79d6dff31a469:/include/stg/utime.h

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;
+    }
 };