diff options
Diffstat (limited to 'src/nvim/profile.h')
-rw-r--r-- | src/nvim/profile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/profile.h b/src/nvim/profile.h index 26d1ebe3a2..bca83ba90d 100644 --- a/src/nvim/profile.h +++ b/src/nvim/profile.h @@ -6,6 +6,14 @@ 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 |