---
name: "TAU_PROFILE_TIMER_SET_TYPE"
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_TYPE"
---

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

Changes the type of a timer

## NAME

TAU\_PROFILE\_TIMER\_SET\_TYPE - Changes the type of a timer

## SYNOPSIS

**C/C++:**

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

## DESCRIPTION

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

## EXAMPLE

**C/C++ :**

```
void foo() {
  TAU_PROFILE_TIMER(timer1, "foo", "int", TAU_USER);
  ...
  TAU_PROFILE_TIMER_SET_TYPE(timer1, "long");
}
```

## SEE ALSO

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