---
name: "MPI_Wtick.openmpi"
section: "3"
platform: "linux"
package: "openmpi-doc"
version: "5.0.7-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_Wtick.openmpi"
---

# MPI\_Wtick.openmpi(3)

*MPI\_Wtick* — Returns the resolution of *MPI\_Wtime*.

## SYNTAX

### C Syntax

```
#include <mpi.h>
double MPI_Wtick()
```

### Fortran Syntax

```
USE MPI
! or the older form: INCLUDE 'mpif.h'
DOUBLE PRECISION MPI_WTICK()
```

### Fortran 2008 Syntax

```
USE mpi_f08
DOUBLE PRECISION MPI_WTICK()
```

## RETURN VALUE

Time in seconds of resolution of *MPI\_Wtime*.

## DESCRIPTION

*MPI\_Wtick* returns the resolution of *MPI\_Wtime* in seconds. That is, it returns, as a double-precision value, the number of seconds between successive clock ticks. For example, if the clock is implemented by the hardware as a counter that is incremented every millisecond, the value returned by *MPI\_Wtick* should be 10^-3.

## NOTE

This function does not return an error value. Consequently, the result of calling it before *MPI\_Init* or after *MPI\_Finalize* is undefined.

**SEE ALSO:**

- •

  *MPI\_Wtime*

## COPYRIGHT

2003-2025, The Open MPI Community
