UNPKG
@biorate/rdkafka
Version:
latest (1.167.1)
1.167.1
1.167.0
1.166.0
1.165.0
1.156.2
1.156.0
1.152.1
1.120.0
1.104.0
1.102.1
1.102.0
1.101.0
1.100.0
1.96.0
1.95.1
1.95.0
1.93.1
1.93.0
1.91.5
1.91.4
1.91.3
1.91.2
1.91.1
1.91.0
1.90.0
1.84.0
1.76.3
1.76.0
1.75.0
1.74.2
1.73.2
1.73.1
1.73.0
1.71.0
1.70.0
1.68.0
1.66.2
1.66.1
1.66.0
1.65.9
1.65.4
1.54.0
1.42.2
1.42.1
1.42.0
1.41.0
1.40.0
1.38.4
1.38.3
1.38.2
1.38.1
1.30.12
1.30.11
1.30.10
1.30.8
1.30.5
1.30.4
1.30.3
1.30.0
1.29.0
1.28.1
1.28.0
1.27.2
1.27.1
1.27.0
1.26.0
1.25.1
1.24.0
1.22.9
1.22.8
1.22.5
1.22.3
1.22.2
1.22.1
1.21.1
1.20.1
1.20.0
1.11.5
1.11.2
Rdkafka connector
biorate.github.io/core
biorate/core
@biorate/rdkafka
/
src
/
helpers.ts
8 lines
(7 loc)
•
182 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
const
timeDiff
= (
) => {
const
startTime = process.
hrtime
();
return
() =>
{
const
diff = process.
hrtime
(startTime);
return
diff[
0
] *
1e3
+ diff[
1
] *
1e-6
; }; };