X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fos%2Fhptime.h;h=d7699d0e5f11875b1d23b5eec449a01539446449;hb=57fa5e371a8b40afc99b922731b77d17c55330a4;hp=7e5b88a0022d53fa8faa9259eb715d40a07c0fd3;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/os/hptime.h b/bertos/os/hptime.h index 7e5b88a0..d7699d0e 100644 --- a/bertos/os/hptime.h +++ b/bertos/os/hptime.h @@ -32,7 +32,7 @@ * * \brief Portable abstraction for high-resolution time handling (interface) * - * \author Bernardo Innocenti + * \author Bernie Innocenti */ #ifndef HPTIME_H #define HPTIME_H @@ -45,6 +45,7 @@ extern "C" { /** our type for "high precision absolute time" */ typedef __int64 hptime_t; + #define SIZEOF_HPTIME_T 8 #define HPTIME_TICKS_PER_SECOND (10000000I64) #define HPTIME_TICKS_PER_MILLISEC (10000I64) @@ -63,6 +64,7 @@ extern "C" { /** Type for "high precision absolute time". */ typedef int64_t hptime_t; + #define SIZEOF_HPTIME_T 8 #define HPTIME_TICKS_PER_SECOND (1000000LL) #define HPTIME_TICKS_PER_MILLISEC (1000LL)