Commit 630f865
use clock_gettime instead of gettimeofday (#49)
```
- CLOCK_REALTIME_COARSE -
clock_getres: 0 seconds | 4000000 nanoseconds
Cost (min): 12 cycles
Cost (avg): 53 cycles
Cost (max): 37061 cycles
- GETTIMEOFDAY -
gettimeofday_getres: 1us
Cost (min): 309 cycles
Cost (avg): 429 cycles
Cost (max): 107227 cycles
```
/cc @lyft/observability
/cc @theatrus1 parent 532a9fe commit 630f865
1 file changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
138 | | - | |
139 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
140 | 156 | | |
141 | | - | |
| 157 | + | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| |||
0 commit comments