Added librarys and test application
This commit is contained in:
29
include/entityx/help/Timer.h
Normal file
29
include/entityx/help/Timer.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Antony Woods <antony@teamwoods.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution.
|
||||
*
|
||||
* Author: Antony Woods <antony@teamwoods.org>
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
||||
namespace entityx {
|
||||
namespace help {
|
||||
|
||||
class Timer {
|
||||
public:
|
||||
Timer();
|
||||
~Timer();
|
||||
|
||||
void restart();
|
||||
double elapsed();
|
||||
private:
|
||||
std::chrono::time_point<std::chrono::system_clock> _start;
|
||||
};
|
||||
|
||||
} // namespace help
|
||||
} // namespace entityx
|
||||
Reference in New Issue
Block a user