1.0.0 • Published 6 years ago

browser-process-hrtime v1.0.0

Weekly downloads
10,835,560
License
BSD-2-Clause
Repository
github
Last release
6 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_modbitget@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-deployrn-tm-notifyrn-use-modal-hookrn-session-multiplier-demornttlockresponsis-gantt-task-reactresponsive-react-appreactofy-css-libraryreikamoon-string-library-aarfp-librn-adyen-dropinsuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonesstandalone-processspotify-ds-sestarbucks-jp-drinksticky-scroll-catchstp-cdksendyreact-native-video-typotestapatestnpm_lmnsvelte-component-libvslvsl-betavision-camera-plugin-scan-facesvue-axios-rest@atlantjs.dev/guardian@simstudio/htmldiffdfeuk-frontenddfeuk-frontend-manualanci-reactsushi-sdk-ftmchain_diggerzzzxxxyyy321123mobtimer-api2lib-errorgrids-over-polygongogencygogency-test-2graphql-ts-client-relayjsoqlmggauharmicroend-componentmpd-parser-1mpesa-cookiempesa-cookie-jarmoonwalkerswap-default-token-listsmongodb-websocketsmpp_design_sysjulien-easy-modalk0ng_d1nosaur_quenak0ng_d1nosaur_quenbk0ng_d1nosaur_quenck0ng_d1nosaur_quendk0ng_d1nosaur_quenek0ng_d1nosaur_quenfk0ng_d1nosaur_quengk0ng_d1nosaur_quenhk0ng_d1nosaur_quenik0ng_d1nosaur_quenjk0ng_d1nosaur_quenkk0ng_d1nosaur_quenlk0ng_d1nosaur_quenmk0ng_d1nosaur_quennk0ng_d1nosaur_quenok0ng_d1nosaur_quenp
1.0.0

6 years ago

0.1.3

6 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago