mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-27 08:10:32 +00:00
11 lines
358 B
TypeScript
11 lines
358 B
TypeScript
/**
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
const TICKS_PER_MS = 10000;
|
|
|
|
export const ticksToMs = (ticks = 0) => ticks / TICKS_PER_MS;
|
|
|
|
export const msToTicks = (ms = 0) => ms * TICKS_PER_MS;
|