API Reference › Time › Time.now
method

Time.now

Time.now() -> int

Returns the real-world time in seconds since the Unix epoch. This is the wall clock and is non-deterministic — never feed it into the lockstep simulation or a replay. Use it only for seeding Random.seed or for telemetry.

Example

program Demo {
  handler Step phase Update {
    Random.seed(value: Time.now())
  }
}
← All symbols