Test: builds OK
Change-Id: Ib1167a6f4ebf4a416c9ca964fc46293e0d0597d4
#include <sys/time.h>
#include <time.h>
+// These are declared as macros for compatbility with existing uses.
+// TODO Spell out the words in full.
+#define MICROS_PER_SECOND 1000000
+#define MILLIS_PER_SECOND 1000
+#define NANOS_PER_MICROSECOND 1000
+#define NANOS_PER_MILLISECOND 1000000
+#define NANOS_PER_SECOND 1000000000
+
/**
* \brief Converts time in ns to a time string, with format similar to logcat.
* \param ns input time in nanoseconds to convert.