diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-07 20:06:47 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-07 20:06:47 +0100 |
| commit | b81500c0e4c5dac5c976fc5553658d9f009ddf00 (patch) | |
| tree | 0fe795e4df9f03bdc1c047b20231aa9462259a06 /src/shell_manager.cc | |
| parent | 1c0bdd8c8549f71a70090a2be0bb17d12c66ea03 (diff) | |
Use microseconds instead of milliseconds for built-in profiling
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc index f34b611d..ba6939d0 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -280,10 +280,10 @@ std::pair<String, int> ShellManager::eval( if (profile) { auto end_time = Clock::now(); - auto full = duration_cast<milliseconds>(end_time - start_time); - auto spawn = duration_cast<milliseconds>(wait_time - spawn_time); - auto wait = duration_cast<milliseconds>(end_time - wait_time); - write_to_debug_buffer(format("shell execution took {} ms (spawn: {}, wait: {})", + auto full = duration_cast<microseconds>(end_time - start_time); + auto spawn = duration_cast<microseconds>(wait_time - spawn_time); + auto wait = duration_cast<microseconds>(end_time - wait_time); + write_to_debug_buffer(format("shell execution took {} us (spawn: {}, wait: {})", (size_t)full.count(), (size_t)spawn.count(), (size_t)wait.count())); } |
