Edit

Share via


SystemInformation.AddToAppUptime(TimeSpan) Method

Definition

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

Applies to