aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/profile.h
blob: bca83ba90dfd377b18b255b3483958b7c123f941 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef NVIM_PROFILE_H
#define NVIM_PROFILE_H

#include <stdint.h>
#include <time.h>

typedef uint64_t proftime_T;

#ifdef STARTUPTIME
#define TIME_MSG(s) do { \
  if (time_fd != NULL) time_msg(s, NULL); \
} while (0)
#else
#define TIME_MSG(s)
#endif

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "profile.h.generated.h"
#endif

#endif  // NVIM_PROFILE_H