> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hexclave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get analytics query timing

> Returns CPU and wall-clock timing stats for a previously run analytics query.



## OpenAPI

````yaml /openapi/server.json post /analytics/query/timing
openapi: 3.1.0
info:
  title: Hexclave REST API
  version: 1.0.0
  description: >-
    The Hexclave REST API. All request headers are documented as canonical
    `X-Hexclave-*`; the equivalent `X-Stack-*` aliases are accepted on every
    endpoint for backwards compatibility. Response headers
    `X-Hexclave-actual-status`, `X-Hexclave-known-error`, and
    `X-Hexclave-request-id` are emitted alongside their legacy `X-Stack-*`
    equivalents.
servers:
  - url: https://api.hexclave.com/api/v1
    description: Hexclave REST API
security: []
paths:
  /analytics/query/timing:
    post:
      tags:
        - Analytics
      summary: Get analytics query timing
      description: >-
        Returns CPU and wall-clock timing stats for a previously run analytics
        query.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query_id:
                  type: string
                  example: >-
                    00000000-0000-0000-0000-000000000000:main:00000000-0000-0000-0000-000000000001
                  description: The query_id returned from POST /analytics/query.
              required:
                - query_id
              example:
                query_id: >-
                  00000000-0000-0000-0000-000000000000:main:00000000-0000-0000-0000-000000000001
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    type: object
                    properties:
                      cpu_time:
                        type: number
                        example: 12
                        description: ClickHouse CPU time in milliseconds.
                      wall_clock_time:
                        type: number
                        example: 18
                        description: ClickHouse wall-clock time in milliseconds.
                    required:
                      - cpu_time
                      - wall_clock_time
                required:
                  - stats

````