X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6fc966f73c8a80580d47881a60ed38a132921e5b..9d9d76eb11d3cd854907adaacbef5812f9d0b996:/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; + } };