Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit a515eee1 authored by Fabien Grzeskowiak's avatar Fabien Grzeskowiak

fix for linux

parent f5beef8a
/* UMANS: Unified Microscopic Agent Navigation Simulator /* UMANS: Unified Microscopic Agent Navigation Simulator
** Copyright (C) 2018-2020 Inria Rennes Bretagne Atlantique - Rainbow - Julien Pettr ** Copyright (C) 2018-2020 Inria Rennes Bretagne Atlantique - Rainbow - Julien Pettr
** **
** This program is free software: you can redistribute it and/or modify ** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by ** it under the terms of the GNU General Public License as published by
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
#if defined(_WIN32) #if defined(_WIN32)
#include <direct.h> #include <direct.h>
#else
#include <sys/stat.h>
#include <math.h> /* fmod */
#endif #endif
namespace HelperFunctions namespace HelperFunctions
......
/* UMANS: Unified Microscopic Agent Navigation Simulator /* UMANS: Unified Microscopic Agent Navigation Simulator
** Copyright (C) 2018-2020 Inria Rennes Bretagne Atlantique - Rainbow - Julien Pettr ** Copyright (C) 2018-2020 Inria Rennes Bretagne Atlantique - Rainbow - Julien Pettr
** **
** This program is free software: you can redistribute it and/or modify ** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by ** it under the terms of the GNU General Public License as published by
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
namespace HelperFunctions namespace HelperFunctions
{ {
typedef std::chrono::time_point<std::chrono::steady_clock> Timestamp; typedef std::chrono::time_point<std::chrono::high_resolution_clock> Timestamp;
Timestamp GetCurrentTime(); Timestamp GetCurrentTime();
double GetIntervalMilliseconds(const Timestamp& startTime, const Timestamp& endTime); double GetIntervalMilliseconds(const Timestamp& startTime, const Timestamp& endTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment