diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /tools/platform/performance-counter.h | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'tools/platform/performance-counter.h')
| -rw-r--r-- | tools/platform/performance-counter.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/platform/performance-counter.h b/tools/platform/performance-counter.h index e9e990f45..e90c2fb99 100644 --- a/tools/platform/performance-counter.h +++ b/tools/platform/performance-counter.h @@ -11,10 +11,7 @@ typedef std::chrono::high_resolution_clock::duration Duration; class PerformanceCounter { public: - static inline TimePoint now() - { - return std::chrono::high_resolution_clock::now(); - } + static inline TimePoint now() { return std::chrono::high_resolution_clock::now(); } static inline Duration getElapsedTime(TimePoint counter) { return now() - counter; } static inline float getElapsedTimeInSeconds(TimePoint counter) { |
