---
name: "TAU_PROFILE_TIMER_SET_NAME"
section: "3"
platform: "linux"
package: "tau"
version: "2.17.3.1.dfsg-4.2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/TAU_PROFILE_TIMER_SET_NAME"
---

# TAU\_PROFILE\_TIMER\_SET\_NAME(3)

Changes the name of a timer

## NAME

TAU\_PROFILE\_TIMER\_SET\_NAME - Changes the name of a timer

## SYNOPSIS

**C/C++:**

**TAU\_PROFILE\_TIMER\_SET\_NAME(Profiler** *timer***, string** *newname***);**

## DESCRIPTION

TAU\_PROFILE\_TIMER\_SET\_NAME macro changes the name associated with a timer to the newname argument.

## EXAMPLE

**C/C++ :**

```
void foo() {
  TAU_PROFILE_TIMER(timer1, "foo:loop1", " ", TAU_USER);
  ...
  TAU_PROFILE_TIMER_SET_NAME(timer1, "foo:lines 21-34");
}
```

## SEE ALSO

[TAU\_PROFILE\_TIMER(3)](/TAU_PROFILE_TIMER/3.md)
