aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/profile.h')
-rw-r--r--src/nvim/profile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/profile.h b/src/nvim/profile.h
index 26d1ebe3a2..7b378577ce 100644
--- a/src/nvim/profile.h
+++ b/src/nvim/profile.h
@@ -6,6 +6,10 @@
typedef uint64_t proftime_T;
+#define TIME_MSG(s) do { \
+ if (time_fd != NULL) time_msg(s, NULL); \
+ } while (0)
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "profile.h.generated.h"
#endif