summaryrefslogtreecommitdiff
path: root/src/core/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common.h')
-rw-r--r--src/core/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 9eb56be3..eabb0b39 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -87,6 +87,9 @@
#ifndef SEC_TO_MSEC
#define SEC_TO_MSEC(x) ((x)*1000)
#endif
+#ifndef MSEC_TO_USEC
+#define MSEC_TO_USEC(x) ((unsigned int)(x)*1000)
+#endif
#ifndef NSEC_TO_MSEC
#define NSEC_TO_MSEC(x) ((double)x/1000000)
#endif