Files
picoGraph/scripts/nodes/library/system/time.js
Max Litruv Boonzaayer e64f3e881e Initial commit
moved from private version control
2025-10-19 21:12:41 +11:00

24 lines
581 B
JavaScript

import { createNodeModule } from "../../nodeTypes.js";
/**
* Returns the number of seconds elapsed since the cart started running.
*/
export const timeNode = createNodeModule(
{
id: "system_time",
title: "Time",
category: "System",
description:
"Retrieve the elapsed time in seconds since the cart launched.",
searchTags: ["time", "seconds", "system", "elapsed"],
inputs: [],
outputs: [
{ id: "value", name: "Seconds", direction: "output", kind: "number" },
],
properties: [],
},
{
evaluateValue: () => "time()",
}
);