X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/18990b532c136adc812b80e20cb0b1b226d648d3..60995b1933ff94757d2d29629f324d16070de1ea:/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; + } };