- 
                                                    Command: timer 
- 
                                                    Subcommand: info 
- 
                                                    Supported Platforms: Native (legacy) 
- 
                                                    Supported OS: Android, iOS 
Retrieves timer values into a defined variable.
Description
Retrieves the value of the timer specified by the timerId parameter. When working with Scriptless Mobile or using the API, the value is retrieved into a defined variable. There is no need to stop the timer to use the Get timer command.
Parameters
| Name | Value | Default | Description | 
|---|---|---|---|
| timerId* | script (Script) TimerA (TimerA) TimerB (TimerB) TimerC (TimerC) | Unique timer identifier. Enter a timer identifier that was used in the Timer start function, or select 'Script' to get the time passed from the beginning of the script. | |
| type* | elapsed (Elapsed) device (Device) ux (UX) system (System) user () rtt () handset () | The selected timer type. Elapsed - Elapsed time (no segmentation) Device - Device work time UX - User experience time System - System activity | |
| variable | The variable name to receive the timer value. | 
* Mandatory
Request & Response
Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=timer&subcommand=info¶m.timerId=timerA¶m.type=uxJSON response
 {
  "executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "reason": "Success",
  "returnValue": "0",
  "testGridReportUrl": "https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml&ownerId=john@perfectomobile.com&sharingCode=166ca97d-a844-443e-bb78-99da59f69f8f",
  "description": "Success",
  "reportKey": "PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml",
  "completed": "true",
  "flowEndCode": "SUCCEEDED"}