{
  "synLogic": "long $ret \u003d $api($1);",
  "help": "The ns_end_timer API is used to calculate the time difference in milliseconds between the start and end time marker. It retrieves the stored start timer information from memory and calculates the time elapsed since that marker was set.",
  "notes": "1. Both the ns_start_timer and ns_end_timer functions should be used within the same session to ensure accurate time calculations.\n2. The ns_end_timer function depends on the presence of a corresponding start timer marker. If the start timer is not found, the function will return 0, indicating that the time difference could not be calculated.",
  "returns": "The time difference in milliseconds between the end timer and its corresponding start timer. If the start timer is not found within the same session, the function returns 0.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\"\u003e \u003ctbody\u003e\u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e End Timer Name \u003c/td\u003e \u003ctd\u003e The name or identifier for the end timer marker \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e\u003c/table\u003e",
  "parameterization": "",
  "name": "ns_end_timer",
  "syntax": "long ns_end_timer(char *end_timer_name)",
  "javaSyntax": "long ns_end_timer(String end_timer_name)",
  "jsSyntax": "ns_end_timer(timerName: string)",
  "cEx": "flow()\n{\n  long endTime \u003d ns_end_timer(\"end_timer_name\");\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception \n  {\n        long endTime \u003d nsApi.ns_end_timer(\"end_timer_name\");\n  }\n}",
  "jsEx": "  let endTime \u003d nsApi.ns_end_timer(\"end_timer_name\");\n",
  "insertStrC": "ns_end_timer(char *end_timer_name);",
  "insertStrJava": "ns_end_timer(String end_timer_name);",
  "insertStrJs": "ns_end_timer(timerName: string);",
  "description": "The ns_end_timer API is used to calculate the time difference in milliseconds between the start and end time marker. It retrieves the stored start timer information from memory and calculates the time elapsed since that marker was set.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "End Timer Name",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "If End Timer Name is a program variable",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore ",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      },
      "quotes": true
    }
  ]
}
