SystemInformation.AddToAppUptime(TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds to the record of how long the app has been running. Use this to optionally include time spent in background tasks or extended execution.
public static void AddToAppUptime (TimeSpan duration);
public void AddToAppUptime (TimeSpan duration);
static member AddToAppUptime : TimeSpan -> unit
member this.AddToAppUptime : TimeSpan -> unit
Public Shared Sub AddToAppUptime (duration As TimeSpan)
Public Sub AddToAppUptime (duration As TimeSpan)
Parameters
- duration
- TimeSpan
The amount to time to add