patch 7.4.1285
Problem: Cannot measure elapsed time.
Solution: Add reltimefloat().
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 98b8c8f..49e4d3d 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1010,6 +1010,24 @@
return buf;
}
+# if defined(FEAT_FLOAT) || defined(PROTO)
+/*
+ * Return a float that represents the time in "tm".
+ */
+ float_T
+profile_float(proftime_T *tm)
+{
+# ifdef WIN3264
+ LARGE_INTEGER fr;
+
+ QueryPerformanceFrequency(&fr);
+ return (float_T)tm->QuadPart / (float_T)fr.QuadPart;
+# else
+ return (float_T)tm->tv_sec + (float_T)tm->tv_usec / 1000000.0;
+# endif
+}
+# endif
+
/*
* Put the time "msec" past now in "tm".
*/