Skip to content

Commit

Permalink
refactor: rename nToMs() argument
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed Oct 27, 2024
1 parent d857d59 commit 99647c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import type { Fn, Statistics } from './types';
/**
* Converts nanoseconds to milliseconds.
*
* @param nano - the nanoseconds to convert
* @param ns - the nanoseconds to convert
* @returns the milliseconds
*/
export const nToMs = (nano: number) => nano / 1e6;
export const nToMs = (ns: number) => ns / 1e6;

/**
* Converts milliseconds to nanoseconds.
Expand Down

0 comments on commit 99647c6

Please sign in to comment.