Home / Function/ now() — fastify Function Reference

now() — fastify Function Reference

Architecture documentation for the now() function in logger-factory.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  79342bd9_97a7_1156_40f9_df36de85a32b["now()"]
  70c4c824_7f74_0fe8_3d46_0407aa0eeae5["logger-factory.js"]
  79342bd9_97a7_1156_40f9_df36de85a32b -->|defined in| 70c4c824_7f74_0fe8_3d46_0407aa0eeae5
  style 79342bd9_97a7_1156_40f9_df36de85a32b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/logger-factory.js lines 125–128

function now () {
  const ts = process.hrtime()
  return (ts[0] * 1e3) + (ts[1] / 1e6)
}

Domain

Subdomains

Frequently Asked Questions

What does now() do?
now() is a function in the fastify codebase, defined in lib/logger-factory.js.
Where is now() defined?
now() is defined in lib/logger-factory.js at line 125.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free