aboutsummaryrefslogtreecommitdiff
path: root/test/timer.cc
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
commit6c9695d16c157e9119dcf897266e8643e6565213 (patch)
tree6f96470fb1a56234f18c1561f3b96eb301fffe1c /test/timer.cc
parent851d4fb9db087eeb183f1c1cb5d96829a32e690b (diff)
downloadcpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.tar.gz
cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.zip
enable misc-*,bugprone-* lints
Diffstat (limited to 'test/timer.cc')
-rw-r--r--test/timer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/timer.cc b/test/timer.cc
index 6bc783c..5ac169c 100644
--- a/test/timer.cc
+++ b/test/timer.cc
@@ -12,14 +12,14 @@ int main() {
{
puts("Sleep 100ms");
- timer::scoped_timer s{t};
+ const timer::scoped_timer kS{t};
usleep(100 * 1000);
}
kShowTime();
{
puts("Sleep 500ms");
- timer::scoped_timer s{t};
+ const timer::scoped_timer kS{t};
usleep(500 * 1000);
}
kShowTime();