Language

TimingLogger(String, Boolean) Constructor

Definition

Construct a TimeLogger instance and start measuring time immediately, if the startImmediately parameter is left out or set to true. If the startMessage is not null then the message is logged at the start.

public TimingLogger(string? startMessage = default, bool startImmediately = true);
new Android.Runtime.TimingLogger : string * bool -> Android.Runtime.TimingLogger

Parameters

startMessage
String

An optional message to use when timing starts.

startImmediately
Boolean

true to request an immediate start; false to leave timing stopped until Start(String) is called.

Remarks

When startImmediately is false, the constructor saves startMessage for a later start.

Applies to