---
name: "ACE_timeprobe_t"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_timeprobe_t"
---

# ACE\_timeprobe\_t(3)

Time probe record.

## NAME

ACE\_timeprobe\_t -  Time probe record.

## SYNOPSIS

```
#include <ace/Timeprobe.h>
class ACE_timeprobe_t
{
  public:
    enum event_type{ NUMBER, STRING };
    event event_;
    event_type event_type_;
    ACE_hrtime_t time_;
    ACE_thread_t thread_;
};
```

## Events are record as strings or numbers.

## Type of event.

```
event event_;
```

Event.

```
event_type event_type_;
```

Type of event.

```
ACE_hrtime_t time_;
```

Timestamp.

```
ACE_thread_t thread_;
```

Id of thread posting the time probe.

## AUTHOR

Irfan Pyarali

## ADDITIONAL COMMENTS

If users want to use time probes, the ACE\_COMPILE\_TIMEPROBES flag must be defined when compiling ACE.  This can be achieved by doing one of the following:

It is not necessary to define ACE\_COMPILE\_TIMEPROBES when using time probes, you simply need ACE\_ENABLE\_TIMEPROBES.  You can use the ACE\_TIMEPROBE\_\* macros to program the time probes, and use the ACE\_ENABLE\_TIMEPROBE to enable the time probes.  If you define ACE\_ENABLE\_TIMEPROBE in your code, but forget to compile ACE with ACE\_COMPILE\_TIMEPROBES, you will end up with linker errors.

Remember that ACE\_COMPILE\_TIMEPROBES means that the ACE library will contain code for time probes.  This is only useful when compiling ACE. ACE\_ENABLE\_TIMEPROBES means that the ACE\_TIMEPROBE\_\* macros should spring to life.

## LIBRARY

ace
