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
6
namespace
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
14
long
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
RoutingKit
Definition
bit_vector.h:8
RoutingKit::get_micro_time
long long get_micro_time()
Definition
timer.cpp:14
timer.h
src
foreign
RoutingKit
src
timer.cpp
Generated on Wed Sep 23 2026 00:09:29 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8