routingkit-cch 0.1.4

Rust bindings for RoutingKit's Customizable Contraction Hierarchies (CCH)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <routingkit/timer.h>

// #include <sys/time.h>
#include <chrono>

namespace RoutingKit{

//long long get_micro_time(){
//	timeval t;
//	gettimeofday(&t, 0);
//	return t.tv_sec*1000000ll+t.tv_usec;
//}

long long get_micro_time(){
	return std::chrono::time_point_cast<std::chrono::microseconds>(std::chrono::high_resolution_clock::now()).time_since_epoch().count();
}

} // RoutingKit