Skip to content

Instantly share code, notes, and snippets.

View kunitoki's full-sized avatar

kunitoki kunitoki

View GitHub Profile
@kunitoki
kunitoki / mapnik_timer.patch
Created April 5, 2012 14:41
boost::chrono in mapnik timer impl
diff --git a/include/mapnik/timer.hpp b/include/mapnik/timer.hpp
index 803f4d0..d7d7eb1 100644
--- a/include/mapnik/timer.hpp
+++ b/include/mapnik/timer.hpp
@@ -29,12 +29,49 @@
#include <sstream>
#include <iomanip>
#include <ctime>
-#ifndef WIN32
-#include <sys/time.h> // for gettimeofday() on unix