Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
timer.cpp
Go to the documentation of this file.
1#include <routingkit/timer.h>
2
3// #include <sys/time.h>
4#include <chrono>
5
6namespace RoutingKit{
7
8//long long get_micro_time(){
9// timeval t;
10// gettimeofday(&t, 0);
11// return t.tv_sec*1000000ll+t.tv_usec;
12//}
13
14long long get_micro_time(){
15 return std::chrono::time_point_cast<std::chrono::microseconds>(std::chrono::high_resolution_clock::now()).time_since_epoch().count();
16}
17
18} // RoutingKit
long long get_micro_time()
Definition timer.cpp:14