diff options
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/porting.h b/src/porting.h index ea7f31b13..7cd4cf031 100644 --- a/src/porting.h +++ b/src/porting.h @@ -149,6 +149,12 @@ bool threadBindToProcessor(threadid_t tid, int pnumber); bool threadSetPriority(threadid_t tid, int prio); /* + Return system information + e.g. "Linux/3.12.7 x86_64" +*/ +std::string get_sysinfo(); + +/* Resolution is 10-20ms. Remember to check for overflows. Overflow can occur at any value higher than 10000000. |