For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Introduction
    • Overview
    • Relevant Technologies
    • Getting Started
  • Setup
    • SDK Installation
    • Additional Setup
    • Third Party Hardware Setup
  • Using the SDK
    • Holoscan Core
    • GPU Resident Execution
    • Holoscan by Example
    • Create an Application
    • Create a Distributed Application
    • Create an Operator
    • Create an Operator via Decorator
    • Create a Condition
    • Dynamic Flow Control
    • CUDA Stream Handling
    • Logging
    • Data Logging
    • Debugging
    • Python Operator Bindings
  • Operators
    • Operators and Extensions
    • Visualization
    • Inference
    • Testing
    • Video I/O Vendor Implementation Guide
  • Components
    • Schedulers
    • Conditions
    • Resources
    • Analytics
  • AI Skills
    • Ai Skills
  • API reference
          • Annotate Message
          • Async Logger Shutdown In Progress
          • Build Native Buffer Capability
          • Calc Strides
          • Convert Double With Check
          • Convert Float To Integer With Check
          • Convert Float With Check
          • Convert Signed Integer With Check
          • Convert Unsigned Integer With Check
          • Create Data Logger Queue
          • Create Pose Tree Edge Delta
          • Create Pose Tree Frame Delta
          • Deannotate Message
          • Decode Message Label Payload
          • Decode Message Payload
          • Decode Metadata Dictionary Payload
          • Deserialize Array
          • Deserialize Binary Blob
          • Deserialize Pose3d
          • Deserialize Snapshot
          • Deserialize Trivial Type
          • Deserialize Vector Of Vectors
          • Dldatatype From Typestr
          • Dldevice From Pointer
          • Encode Message Label Payload
          • Encode Message Payload
          • Encode Metadata Dictionary Payload
          • Forward Error
          • Get Associated Local Ip
          • Get Current Time Us
          • Get Preferred Network Ports
          • Get Unused Network Ports
          • Get Well Formed Name
          • Interpolate
          • Is Almost One
          • Is Almost Zero
          • Is Pose Almost Identity
          • Load Stable Host Id
          • Log Critical
          • Log Debug
          • Log Error
          • Log Info
          • Log Level
          • Log Message
          • Log Trace
          • Log Warn
          • Make Application
          • Make Unexpected
          • Numpy Dtype
          • Operator Minus
          • Operator Plus
          • Parse Native Buffer Policy
          • Pose2 Exp
          • Pose2 Log
          • Pose2 Magnitude
          • Pose3 Exp
          • Pose3 Log
          • Pose3 Magnitude
          • Query Gpu Device Info
          • Serialize Binary Blob
          • Serialize Pose3d
          • Serialize Snapshot
          • Serialize Trivial Type
          • Serialize Vector Of Vectors
          • Set Log Level
          • Set Log Pattern
          • Slerp Interpolate
          • Static Handle Signal
  • Performance
    • Performance Considerations
    • Flow Tracking
    • GXF Job Statistics
    • Nsight Profiling
  • HoloHub
    • HoloHub Overview
  • FAQ
    • FAQ
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoDocumentation
API referenceC++ APIHoloscanFunctions

holoscan::get_current_time_us

Beta
||View as Markdown|
static int64_t holoscan::get_current_time_us()

Return the current time in microseconds since the epoch.

This function previously used the C++11 standard library’s chrono library. This function now uses CLOCK_REALTIME to get the current time, because the clock chrono uses is implementation-dependent. We want a known clock like CLOCK_REALTIME so that we can use the clock across machines. CLOCK_REALTIME is a clock that is supposed to be synchronized with PTP synchronization.

Returns: The current time in microseconds returned by CLOCK_REALTIME. If CLOCK_REALTIME is not available, it returns -1.

Previous

holoscan::get_associated_local_ip

Next

holoscan::get_preferred_network_ports