Table of Contents

Struct TimedLogEvent

Namespace
NanoByte.Common
Assembly
NanoByte.Common.dll

Structure that allows you to log timed execution blocks.

public struct TimedLogEvent
Extension Methods

Examples

using(new LogEvent("Message")) {}

Constructors

TimedLogEvent(string)

Starts a new log event.

public TimedLogEvent(string entry)

Parameters

entry string

The entry for the log file. Elapsed time will automatically be appended.

Methods

Dispose()

Ends the log event.

public void Dispose()