Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
ScopedTimer.h
1#pragma once
2
3#include <chrono>
4#include <string>
5
6namespace util {
7
15public:
24
31
33
40
41private:
43 std::string name;
44};
45
46} // namespace util
_GLIBCXX_END_NAMESPACE_CXX11 typedef basic_string< char > string
duration< int64_t, micro > microseconds
ScopedTimer()
Create an unnamed scoped timer.
Definition ScopedTimer.cpp:10
ScopedTimer(std::string name)
Create a scoped timer with the specified name.
Definition ScopedTimer.cpp:7
std::chrono::microseconds elapsedTime() const
Gets the elapsed time measured by this timer.
Definition ScopedTimer.cpp:20
A collection of utility functions and classes with common use-cases.
Definition SwerveController.cpp:145