Splunk MINT SDK for iOS

Splunk MINT SDK for iOS Developer Guide

Download manual as PDF

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 startTimerWithName: method.
  • To stop a timer, use the stopTimerWithId: method.

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 views
Report user-specific data

This documentation applies to the following versions of Splunk MINT SDK for iOS: 5.2.x

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

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