feat: added delay flag in @hoppscotch/cli and related tests (#2527)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -129,3 +129,8 @@ export const getDurationInSeconds = (
|
||||
const durationInSeconds = (end[0] * 1e9 + end[1]) / 1e9;
|
||||
return round(durationInSeconds, precision);
|
||||
};
|
||||
|
||||
export const roundDuration = (
|
||||
duration: number,
|
||||
precision: number = DEFAULT_DURATION_PRECISION
|
||||
) => round(duration, precision);
|
||||
|
||||
Reference in New Issue
Block a user