Mercurial > vim
comparison runtime/doc/builtin.txt @ 32160:98774a275d6d v9.0.1411
patch 9.0.1411: accuracy of profiling is not optimal
Commit: https://github.com/vim/vim/commit/076de79ad832558267b3ff903c048df2f4c1a5d6
Author: Ernie Rael <errael@raelity.com>
Date: Thu Mar 16 21:43:15 2023 +0000
patch 9.0.1411: accuracy of profiling is not optimal
Problem: Accuracy of profiling is not optimal.
Solution: Use CLOCK_MONOTONIC if possible. (Ernie Rael, closes https://github.com/vim/vim/issues/12129)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Mar 2023 22:45:04 +0100 |
parents | f3987fde6dea |
children | b2e8663e6dcc |
comparison
equal
deleted
inserted
replaced
32159:49fdfec64a4c | 32160:98774a275d6d |
---|---|
7148 microseconds. Example: > | 7148 microseconds. Example: > |
7149 let start = reltime() | 7149 let start = reltime() |
7150 call MyFunction() | 7150 call MyFunction() |
7151 echo reltimestr(reltime(start)) | 7151 echo reltimestr(reltime(start)) |
7152 < Note that overhead for the commands will be added to the time. | 7152 < Note that overhead for the commands will be added to the time. |
7153 The accuracy depends on the system. | 7153 The accuracy depends on the system. Use reltimefloat() for the |
7154 greatest accuracy which is nanoseconds on some systems. | |
7154 Leading spaces are used to make the string align nicely. You | 7155 Leading spaces are used to make the string align nicely. You |
7155 can use split() to remove it. > | 7156 can use split() to remove it. > |
7156 echo split(reltimestr(reltime(start)))[0] | 7157 echo split(reltimestr(reltime(start)))[0] |
7157 < Also see |profiling|. | 7158 < Also see |profiling|. |
7158 If there is an error an empty string is returned in legacy | 7159 If there is an error an empty string is returned in legacy |
10751 perl Compiled with Perl interface. | 10752 perl Compiled with Perl interface. |
10752 persistent_undo Compiled with support for persistent undo history. | 10753 persistent_undo Compiled with support for persistent undo history. |
10753 postscript Compiled with PostScript file printing. | 10754 postscript Compiled with PostScript file printing. |
10754 printer Compiled with |:hardcopy| support. | 10755 printer Compiled with |:hardcopy| support. |
10755 profile Compiled with |:profile| support. | 10756 profile Compiled with |:profile| support. |
10757 prof_nsec Profile results are in nano seconds. | |
10756 python Python 2.x interface available. |has-python| | 10758 python Python 2.x interface available. |has-python| |
10757 python_compiled Compiled with Python 2.x interface. |has-python| | 10759 python_compiled Compiled with Python 2.x interface. |has-python| |
10758 python_dynamic Python 2.x interface is dynamically loaded. |has-python| | 10760 python_dynamic Python 2.x interface is dynamically loaded. |has-python| |
10759 python3 Python 3.x interface available. |has-python| | 10761 python3 Python 3.x interface available. |has-python| |
10760 python3_compiled Compiled with Python 3.x interface. |has-python| | 10762 python3_compiled Compiled with Python 3.x interface. |has-python| |