From df49b93877b40551111be6ef5ecfe4629787ab75 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 29 Mar 2013 16:51:57 -0400 Subject: Add varying levels of precision to TimeTaker --- src/gettime.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gettime.h') diff --git a/src/gettime.h b/src/gettime.h index 611906559..cde1471e5 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -31,7 +31,15 @@ with this program; if not, write to the Free Software Foundation, Inc., Normal build: main.cpp Server build: servermain.cpp */ +enum TimePrecision { + PRECISION_SECONDS, + PRECISION_MILLI, + PRECISION_MICRO, + PRECISION_NANO +}; + extern u32 getTimeMs(); +extern u32 getTime(TimePrecision prec); /* Timestamp stuff -- cgit v1.2.3