Create timers
To track internal processes in your mobile app, you can create a high-precision timer that runs once and records the elapsed time, in nanoseconds.
Use the following methods to work with timers:
- To start a timer, use the timerStart(name) method as follows:
- To stop a timer, use the timerStop(id) method as follows:
Mint.timerStart("Timer1");
Mint.timerStop("B4815E8C-1E14-46A2-A75D-D5B55D60C68B");
To find the elapsed time, run a search in Splunk Enterprise on the timer name, for example:
tag=mint timerName="Timer1"
The search results display the elapsed time in nanoseconds:
. . . device: x86_64 elapsedTime: 18446744073707583000 extraData: { } . . .
Track activity | Report user-specific data |
This documentation applies to the following versions of Splunk MINT™ SDK for Android (Legacy): 5.2.x
Feedback submitted, thanks!