File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,12 @@ pub trait NSProcessInfo: Sized {
229229 msg_send ! [ class!( NSProcessInfo ) , processInfo]
230230 }
231231
232+ unsafe fn systemUptime ( _: Self ) -> NSTimeInterval {
233+ msg_send ! [ class!( NSProcessInfo ) , systemUptime]
234+ }
235+
232236 unsafe fn processName ( self ) -> id ;
237+ unsafe fn uptime ( self ) -> NSTimeInterval ;
233238 unsafe fn operatingSystemVersion ( self ) -> NSOperatingSystemVersion ;
234239 unsafe fn isOperatingSystemAtLeastVersion ( self , version : NSOperatingSystemVersion ) -> bool ;
235240}
@@ -239,6 +244,10 @@ impl NSProcessInfo for id {
239244 msg_send ! [ self , processName]
240245 }
241246
247+ unsafe fn uptime ( self ) -> NSTimeInterval {
248+ msg_send ! [ self , systemUptime]
249+ }
250+
242251 unsafe fn operatingSystemVersion ( self ) -> NSOperatingSystemVersion {
243252 msg_send ! [ self , operatingSystemVersion]
244253 }
You can’t perform that action at this time.
0 commit comments