1.0.0 • Published 7 years ago

browser-process-hrtime v1.0.0

Weekly downloads
10,835,560
License
BSD-2-Clause
Repository
github
Last release
7 years ago

browser-process-hrtime

Browser shim for Node.js process.hrtime(). See documentation at nodejs.org

This module does not provide the same level of time precision as node.js, but provides a matching API and response format.

usage

Use hrtime independent of environment (node or browser). It will use process.hrtime first and fallback if not present.

const hrtime = require('browser-process-hrtime')
const start = hrtime()
// ...
const delta = hrtime(start)

monkey-patching

You can monkey-patch process.hrtime for your dependency graph like this:

process.hrtime = require('browser-process-hrtime')
const coolTool = require('module-that-uses-hrtime-somewhere-in-its-depths')

note

This was originally pull-requested against node-process, but they are trying to stay lean.

w3c-hr-timearchetype-libraryreact-native-bluetooth2killi8n-react-native-fast-imagespecify-importsbabel-specify-importsopcua-webproxyreact-native-template-rfbaseairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_mod@olivervorasai/sliderreact-native-printer-brotherswilscanner@mink-opn/build-tokensreact-native-slider-kf@infinitebrahmanuniverse/nolb-browser-plginexpand-react-bridgesklif-ui-kitsklif-api@everything-registry/sub-chunk-1266p149-tablesklif-uitailwind-vector-effectsyncbackbaseswebchewoven-challenge-deploysuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonesstandalone-processspotify-ds-sestarbucks-jp-drinksticky-scroll-catchstp-cdktestapatestnpm_lmnsvelte-component-libvslvsl-betavision-camera-plugin-scan-facesvue-axios-rest@donapot/mylibtest@cryptocode99/token-lists@cute-apocalypse/react-tree@corelmax/react-native-my2c2p-sdk@rps-engine/core@percent/percent-api-hooks@poscredit/plugin-chart-borisgenerator-bootstrap-boilerplate-templatejulien-easy-modaljsdomprojsoqljnf-accesscontrol-rnttljsdom-canvas-2k0ng_d1nosaur_quenak0ng_d1nosaur_quenbk0ng_d1nosaur_quenck0ng_d1nosaur_quendk0ng_d1nosaur_quenek0ng_d1nosaur_quenfk0ng_d1nosaur_quengk0ng_d1nosaur_quenhk0ng_d1nosaur_quenik0ng_d1nosaur_quenjk0ng_d1nosaur_quenkk0ng_d1nosaur_quennk0ng_d1nosaur_quenok0ng_d1nosaur_quenpk0ng_d1nosaur_quenqk0ng_d1nosaur_quenrk0ng_d1nosaur_quenlk0ng_d1nosaur_quenmk0ng_d1nosaur_quensk0ng_d1nosaur_quentk0ng_d1nosaur_quenuk0ng_d1nosaur_quenvk0ng_d1nosaur_quenwk0ng_d1nosaur_quenxk0ng_d1nosaur_quenyk0ng_d1nosaur_quenz@atlantjs.dev/guardian@simstudio/htmldiffdfeuk-frontenddfeuk-frontend-manualanci-reactsushi-sdk-ftmchain_diggerzzzxxxyyy321123styledbuttonxxstyle-guide-mainspacex_cycl3_roamospacex_cycl3_roampspacex_cycl3_roamqspacex_cycl3_roamr
1.0.0

7 years ago

0.1.3

7 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago