{
  "synLogic": "long $ret \u003d $api($1);",
  "help": "The ns_start_timer API is used to add a marker with a specified name (start_timer_name) and retrieve the current timestamp in milliseconds when it is applied in the execution flow. This api marks the starting point of the start time marker which can be further used to calculate the time difference between start and end time marker.",
  "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 current timestamp in milliseconds (long) when the ns_start_timer function is executed.",
  "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 Start Timer Name \u003c/td\u003e \u003ctd\u003e The name or identifier for the start timer marker \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e\u003c/table\u003e",
  "parameterization": "",
  "name": "ns_start_timer",
  "syntax": "long ns_start_timer(char *start_timer_name)",
  "javaSyntax": "long ns_start_timer(String start_timer_name)",
  "jsSyntax": "ns_start_timer(start_timer_name: string)",
  "cEx": "flow()\n{\n  long startTime \u003d ns_start_timer(\"start_timer_name\");\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception \n  {\n    long startTime \u003d nsApi.ns_start_timer(\"start_timer_name\");\n  }\n}",
  "jsEx": "  let startTime \u003d nsApi.ns_start_timer(\"start_timer_name\");\n",
  "insertStrC": "ns_start_timer(char *start_timer_name);",
  "insertStrJava": "ns_start_timer(String start_timer_name);",
  "insertStrJs": "ns_start_timer(start_timer_name: string);",
  "description": "The ns_start_timer API is used to add a marker with a specified name (start_timer_name) and retrieve the current timestamp in milliseconds when it is applied in the execution flow. This api marks the starting point of the start time marker which can be further used to calculate the time difference between start and end time marker.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Start 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 Start 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)"
      }
    }
  ]
}