mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibCore: Add factory to create and start a new ElapsedTimer
Simplifies one of the main usage patterns of the timer class.
This commit is contained in:
parent
500a3fb2a7
commit
a2ee387683
2 changed files with 9 additions and 0 deletions
|
@ -13,6 +13,8 @@ namespace Core {
|
|||
|
||||
class ElapsedTimer {
|
||||
public:
|
||||
static ElapsedTimer start_new();
|
||||
|
||||
ElapsedTimer(bool precise = false)
|
||||
: m_precise(precise)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue