- identifier
- A unique identifier name for this event.
- table
- An optional key/value store representing additional data that the developer would like to attach to this time track.
A handler object that allows the developer to start and stop the built in timer.
This shows how to use this method with a using keyword:
C# Example
using (var handle = Insights.TrackTime("TimeToLogin")) {
await SubmitLoginInformation("myuserid", "mypassword");
... more code goes here ...
}
If the developer does not wish to use the using keyword or wants to track events in more complex scenarios they can use the Start and Stop methods on the handle object:
C# Example
var handle = Insights.TrackTime("TimeToLogin");
handle.Start();
await SubmitLoginInformation("myuserid", "mypassword");
... more code goes here ...
handle.Stop();