---
name: "function::nsecs_to_string"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::nsecs_to_string"
---

# function::nsecs\_to\_string(3stap)

Human readable string for given nanoseconds

## NAME

function::nsecs\_to\_string - Human readable string for given nanoseconds

## SYNOPSIS

```
    nsecs_to_string:string(nsecs:long)
```

## ARGUMENTS

*nsecs*

Number of nanoseconds to translate.

## DESCRIPTION

Returns a string representing the number of nanoseconds as a human readable string consisting of “XmY.ZZZZZZs”, where X is the number of minutes, Y is the number of seconds and ZZZZZZZZZ is the number of nanoseconds.

## SEE ALSO0

[*tapset::task\_time*(3stap)](/tapset::task_time/3stap.md)
