Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.3 KB

timeticks-transact-sql.md

File metadata and controls

50 lines (39 loc) · 1.3 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
@@TIMETICKS (Transact-SQL)
@@TIMETICKS (Transact-SQL)
MikeRayMSFT
mikeray
09/18/2017
sql
t-sql
reference
@@TIMETICKS_TSQL
@@TIMETICKS
ticks [SQL Server]
@@TIMETICKS function
microseconds per tick [SQL Server]
time [SQL Server], ticks
number of microseconds per tick
TSQL

@@TIMETICKS (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Managed Instance]

Returns the number of microseconds per tick.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

@@TIMETICKS  

Return Types

integer

Remarks

The amount of time per tick is computer-dependent. Each tick on the operating system is 31.25 milliseconds, or one thirty-second of a second.

Examples

SELECT @@TIMETICKS AS 'Time Ticks';  

See Also

System Statistical Functions (Transact-SQL)