SQL Flow Field Guide

@@TIMETICKS

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

server statistics

What changes

Input
server activity counters
Output or change
integer counter
Return type
integer

Syntax at a glance

@@TIMETICKS

Work example

Read microseconds per clock tick for related server counters.

Take two readings over a measured interval and account for instance restarts.

Check your work Use only with counters whose documentation defines tick conversion.

Open Microsoft Learn for full syntax, permissions, and details for your version.