---
name: "SDL_SECONDS_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_SECONDS_TO_NS"
---

# SDL\_SECONDS\_TO\_NS(3)

Convert seconds to nanoseconds.

## NAME

SDL\_SECONDS\_TO\_NS - Convert seconds to nanoseconds.

## HEADER FILE

Defined in SDL3/SDL\_timer.h

## SYNOPSIS

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

**#define SDL\_SECONDS\_TO\_NS(S)    (((Uint64)(S)) \* SDL\_NS\_PER\_SECOND)**

## DESCRIPTION

This only converts whole numbers, not fractional seconds.

## RETURN VALUE

Returns S, 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.
