RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesutil

Time

- **Node Name:** `Time`

Overview

  • Node Name: Time
  • Category: provider
  • File: extensions/flowgraph/nodes/util/time.lua

Provides the current time and frame delta times. As a provider category node, it requires no flow input and continuously outputs timing data.

Pin Schema

Output Pins

PinTypeDescription
timenumberTime since start of project (high-precision clock)
dtRealnumberReal elapsed time between frames in seconds (ignores pause)
dtSimnumberSimulation elapsed time in seconds (0 when paused, scaled with slow-motion)

Internals

Key Methods

MethodDescription
init(mgr)Empty initialization
work()Reads time values from os.clockhp() and the flowgraph manager

Time Sources

  • time: Uses os.clockhp() - high-precision real-time clock.
  • dtReal: From self.mgr.dtReal - wall-clock delta, unaffected by pause or slow-motion.
  • dtSim: From self.mgr.dtSim - simulation delta, respects pause state and time scaling.

How It Works

  1. Every frame, work() updates all three output pins.
  2. os.clockhp() provides absolute time (useful for measuring durations).
  3. dtReal and dtSim come from the flowgraph manager's frame timing.
  4. No input pins needed - the node is a passive data provider.

Usage Example

-- Measure elapsed time:
-- Connect 'time' output to a variable, compare across frames

-- Frame-rate independent animation:
-- Use dtSim for simulation-aware timing
-- Use dtReal for UI/HUD timing that ignores pause

-- Accumulate time in a custom node:
-- self.elapsed = self.elapsed + dtSim
-- Equivalent to building a timer from delta time

Key Dependencies

  • os.clockhp() - high-precision clock
  • self.mgr.dtReal / self.mgr.dtSim - flowgraph manager timing

See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Template Node

- **Node Name:** `Template Node`

Timed Sequence

- **Node Name:** `Timed Sequence`

On this page

OverviewPin SchemaOutput PinsInternalsKey MethodsTime SourcesHow It WorksUsage ExampleKey DependenciesSee Also