mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
normalize includes: common
This commit is contained in:
+5
-6
@@ -15,11 +15,10 @@
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef TIMER_H
|
||||
#define TIMER_H
|
||||
|
||||
#include "types.h"
|
||||
#include <chrono>
|
||||
#pragma once
|
||||
|
||||
#include "common/types.h"
|
||||
|
||||
// Disgrace: for windows compile
|
||||
#ifdef _WINDOWS
|
||||
@@ -27,6 +26,8 @@
|
||||
int gettimeofday (timeval *tp, ...);
|
||||
#endif
|
||||
|
||||
#include <chrono>
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
@@ -93,5 +94,3 @@ struct BenchTimer
|
||||
private:
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> start_time;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user