---
name: "SDL_GetTicksNS"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetTicksNS"
---

# SDL\_GetTicksNS(3)

Get the number of nanoseconds since SDL library initialization.

## NAME

SDL\_GetTicksNS - Get the number of nanoseconds since SDL library initialization.

## HEADER FILE

Defined in SDL3/SDL\_timer.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**Uint64 SDL\_GetTicksNS(void);**

## RETURN VALUE

( **Uint64** ) Returns an unsigned 64-bit value representing the number of nanoseconds since the SDL library initialized.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
