There was an error while loading. Please reload this page.
1 parent 7bc77ca commit 75d1a6fCopy full SHA for 75d1a6f
src/timed-stream.ts
@@ -29,6 +29,11 @@ type TimedStreamOptions = TransformOptions & {
29
) => void;
30
};
31
32
+/**
33
+ * StreamTimer is a utility class for measuring the elapsed time of stream
34
+ * operations. It provides methods to start and stop the timer, as well as
35
+ * retrieve the total duration in milliseconds.
36
+ */
37
class StreamTimer {
38
private startTime;
39
private totalDuration;
@@ -62,7 +67,6 @@ export class TimedStream extends PassThrough {
62
67
private readTimer = new StreamTimer();
63
68
private transformTimer = new StreamTimer();
64
69
constructor(options?: TimedStreamOptions) {
65
- // highWaterMark of 1 is needed to respond to each row
66
70
super({
71
...options,
72
objectMode: true,
0 commit comments