51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef GETTIME_HEADER
-#define GETTIME_HEADER
+#pragma once
-#include "irrlichttypes.h"
-#include <time.h>
+#include <ctime>
#include <string>
-
enum TimePrecision
{
PRECISION_SECONDS,
PRECISION_NANO
};
-
inline std::string getTimestamp()
{
time_t t = time(NULL);
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
return cs;
}
-
-#endif