Splunk MINT SDK for Android (Legacy)

Splunk MINT SDK for Android Developer Guide

Acrobat logo Download manual as PDF


Splunk MINT is no longer available for purchase as of January 29, 2021. Customers who have already been paying to ingest and process MINT data in Splunk Enterprise will continue to receive support until December 31, 2021, which is End of Life for all MINT products: App, Web Service (Management Console), SDK and Add-On.
Acrobat logo Download topic as PDF

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:
  • Mint.timerStart("Timer1");
    
  • To stop a timer, use the timerStop(id) method as follows:
  • 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: { }
   . . .
Last modified on 28 January, 2019
PREVIOUS
Track activity
  NEXT
Report user-specific data

This documentation applies to the following versions of Splunk MINT SDK for Android (Legacy): 5.2.x


Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters