FUNCTION::NSECS\_TO\_S(3stap) Task Time Tapset FUNCTION::NSECS\_TO\_S(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


    nsecs_to_string:string(nsecs:long)
```

# [ARGUMENTS](#ARGUMENTS)

*nsecs*

Number of nanoseconds to translate.

# [DESCRIPTION](#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](#SEE_ALSO0)

[*tapset::task\_time*(3stap)](/man/enterprise-packages/systemtap/tapset::task_time.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::nsecs_to_string(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
