{"id":21446191,"url":"https://github.com/spazmodius/now","last_synced_at":"2026-05-18T22:08:46.271Z","repository":{"id":143019013,"uuid":"167648739","full_name":"spazmodius/now","owner":"spazmodius","description":"Faster now() for Node.js","archived":false,"fork":false,"pushed_at":"2021-05-28T20:45:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T11:23:42.307Z","etag":null,"topics":["module","node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spazmodius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-26T04:16:29.000Z","updated_at":"2021-05-28T20:45:42.000Z","dependencies_parsed_at":"2023-04-22T17:31:00.801Z","dependency_job_id":null,"html_url":"https://github.com/spazmodius/now","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spazmodius%2Fnow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spazmodius%2Fnow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spazmodius%2Fnow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spazmodius%2Fnow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spazmodius","download_url":"https://codeload.github.com/spazmodius/now/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955944,"owners_count":20374410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["module","node"],"created_at":"2024-11-23T02:42:18.480Z","updated_at":"2026-05-18T22:08:46.234Z","avatar_url":"https://github.com/spazmodius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spaz's Faster now()\r\n\r\n***Faster now() for Node.js***\r\n\r\nLet's be clear: `Date.now()` is not \"slow\".\r\nOn Spaz's c.2018 laptop it returns the current time in about 80 nanoseconds (yes, _nano_; 80 billionths-with-a-B of a second.)\r\n\r\nBut, if you like speed like Spaz likes speed, it turns out that, using Node's [`process.hrtime()`](https://nodejs.org/api/process.html#process_process_hrtime_time), we can calculate the current time in about _half the nanos!_\r\nCrazy.\r\n\r\n## Installation and Usage\r\n\r\n`npm install spazmodius/now`\r\n\r\n```js\r\nconst now = require('@spazmodius/now')\r\nconsole.log('The current time is', now(), Date.now())\r\n```\r\n\r\n## now()\r\n\r\nReturns the number of milliseconds since the UNIX epoch.\r\nThis is a drop-in replacement for [`Date.now()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspazmodius%2Fnow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspazmodius%2Fnow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspazmodius%2Fnow/lists"}