TimingLogger Class
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.
A class which uses the native Xamarin.Android runtime to accurately measure (to the nanosecond level) time
spent executing a portion of code bracketed with calls to Start(String) (or the constructor, by
default) and Stop(String).
Timing messages are logged with the Info
priority and the monodroid-timing
tag in the
device's logcat buffer.
public class TimingLogger : IDisposable
type TimingLogger = class
interface IDisposable
- Inheritance
-
TimingLogger
- Implements
Constructors
TimingLogger(String, Boolean) |
Construct a TimeLogger instance and start measuring time immediately, if the |
Methods
Dispose() |
Dispose of the current instance. Dispose() for more information. |
Dispose(Boolean) |
Dispose of the current instance, stopping timing if necessary. Note that if timing is stopped here, the log will contain the default message (Stop(String)) |
Finalize() | |
Start(String) |
Start measuring time. If |
Stop(String) |
Stop measuring time and log message specified in the
The |