# Measuring Decryption Time in Node-RED

**URL:** https://discourse.nodered.org/t/measuring-decryption-time-in-node-red/98903
**Category:** General
**Created:** [1 September 2025 03:27 UTC](https://discourse.nodered.org/t/measuring-decryption-time-in-node-red/98903 "2025-09-01T03:27:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![maulanamuslih](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maulanamuslih/32/101417_2.png) [@maulanamuslih](https://discourse.nodered.org/u/maulanamuslih)
#### Post date: [1 September 2025 03:27 UTC](https://discourse.nodered.org/t/measuring-decryption-time-in-node-red/98903/1 "2025-09-01T03:27:45Z")

</div>

Is it possible to use `process.hrtime` in Node-RED to measure an algorithm’s decryption time in microseconds?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [1 September 2025 08:27 UTC](https://discourse.nodered.org/t/measuring-decryption-time-in-node-red/98903/2 "2025-09-01T08:27:48Z")

</div>

> [@maulanamuslih](#):
>
> Is it possible to use `process.hrtime` in Node-RED

Yes.

> [@maulanamuslih](#):
>
> to measure an algorithm’s decryption time in microseconds?

Depends.

It depends on how that algorithm is being run. If in a function node, then certainly you can. If between nodes in a flow, you still could but I don't know how meaningful it would be due to other overheads.

In a function node, simply "install" `node:process` in the function node's "Setup" tab with the name `process`. You can then simply use `process.hrtime` in your function code.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [30 November 2025 08:28 UTC](https://discourse.nodered.org/t/measuring-decryption-time-in-node-red/98903/3 "2025-11-30T08:28:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
