---
name: "SDL_MS_TO_NS"
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_MS_TO_NS"
---

# SDL\_MS\_TO\_NS(3)

Convert milliseconds to nanoseconds.

## NAME

SDL\_MS\_TO\_NS - Convert milliseconds to nanoseconds.

## HEADER FILE

Defined in SDL3/SDL\_timer.h

## SYNOPSIS

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

**#define SDL\_MS\_TO\_NS(MS)        (((Uint64)(MS)) \* SDL\_NS\_PER\_MS)**

## DESCRIPTION

This only converts whole numbers, not fractional milliseconds.

## RETURN VALUE

Returns MS, expressed in nanoseconds.

## THREAD SAFETY

It is safe to call this macro from any thread.

## AVAILABILITY

This macro is available since SDL 3.2.0.
