Class TimedLogEvent
Structure that allows you to log timed execution blocks.
Namespace: NanoByte.Common
Assembly: NanoByte.Common.dll
Syntax
public sealed class TimedLogEvent : ValueType
Examples
using(new LogEvent("Message")) {}
Constructors
TimedLogEvent(String)
Starts a new log event.
Declaration
public TimedLogEvent(string entry)
Parameters
Type | Name | Description |
---|---|---|
String | entry | The entry for the log file. Elapsed time will automatically be appended. |
Methods
Dispose()
Ends the log event.
Declaration
public void Dispose()