aboutsummaryrefslogtreecommitdiff
path: root/src/porting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/porting.h')
-rw-r--r--src/porting.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/porting.h b/src/porting.h
index 13b715557..53aad6171 100644
--- a/src/porting.h
+++ b/src/porting.h
@@ -104,6 +104,11 @@ std::string getDataPath(const char *subpath);
void initializePaths();
/*
+ Get number of online processors in the system.
+*/
+int getNumberOfProcessors();
+
+/*
Resolution is 10-20ms.
Remember to check for overflows.
Overflow can occur at any value higher than 10000000.