mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 10:46:06 +10:00
Initial commit
moved from private version control
This commit is contained in:
23
scripts/nodes/library/system/time.js
Normal file
23
scripts/nodes/library/system/time.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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()",
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user