We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c72b7d + 6e78ddf commit 92bae14Copy full SHA for 92bae14
cocoa-foundation/src/foundation.rs
@@ -229,6 +229,7 @@ pub trait NSProcessInfo: Sized {
229
msg_send![class!(NSProcessInfo), processInfo]
230
}
231
232
+ unsafe fn systemUptime(self) -> NSTimeInterval;
233
unsafe fn processName(self) -> id;
234
unsafe fn operatingSystemVersion(self) -> NSOperatingSystemVersion;
235
unsafe fn isOperatingSystemAtLeastVersion(self, version: NSOperatingSystemVersion) -> bool;
@@ -239,6 +240,10 @@ impl NSProcessInfo for id {
239
240
msg_send![self, processName]
241
242
243
+ unsafe fn systemUptime(self) -> NSTimeInterval {
244
+ msg_send![self, systemUptime]
245
+ }
246
+
247
unsafe fn operatingSystemVersion(self) -> NSOperatingSystemVersion {
248
msg_send![self, operatingSystemVersion]
249
0 commit comments