This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Add system::sleep().
tags/v2.2.0
Andrew Belt
2 years ago
parent
765c213ec5
commit
a6a212789a
2 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
include/system.hpp
+5
-0
src/system.cpp
+ 1
- 0
include/system.hpp
View File
@@ -171,6 +171,7 @@ double getTime();
*/
double getUnixTime();
double getThreadTime();
void sleep(double time);
std::string getOperatingSystemInfo();
// Applications
+ 5
- 0
src/system.cpp
View File
@@ -809,6 +809,11 @@ double getThreadTime() {
}
void sleep(double time) {
std::this_thread::sleep_for(std::chrono::duration<double>(time));
}
std::string getOperatingSystemInfo() {
#if defined ARCH_LIN
struct utsname u;
Write
Preview
Loading…
Cancel
Save