diff --git a/docs/writing-reactors/time-and-timers.mdx b/docs/writing-reactors/time-and-timers.mdx index 104c749c0..9f7ed7d03 100644 --- a/docs/writing-reactors/time-and-timers.mdx +++ b/docs/writing-reactors/time-and-timers.mdx @@ -15,7 +15,7 @@ import { A key property of Lingua Franca is **logical time**. All events occur at an instant in logical time. By default, the runtime system does its best to align logical time with **physical time**, which is some measurement of time on the execution platform. The **lag** is defined to be physical time minus logical time, and the goal of the runtime system is maintain a small non-negative lag. -The **lag** is allowed to go negative only if the [`fast` target property](<../introduction.md#fast>) or the [`--fast`](<../introduction.md#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. +The **lag** is allowed to go negative only if the [`fast`](<../reference/target-declaration#fast>) target property or the [`--fast`](<../reference/target-declaration#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. @@ -93,8 +93,8 @@ import TS_Timer from '../assets/code/ts/src/Timer.lf'; This specifies a timer named `t` that will first trigger at the start of execution and then repeatedly trigger at intervals of one second. Notice that the time units can be left off if the value is zero. This target provides a built-in function for retrieving the logical time at which the reaction is invoked, -`get_logical_time()` -`FIXME` +`lf_time_logical()` +`get_logical_time()` `lf.time.logical()` `util.getCurrentLogicalTime()` `get_logical_time()` diff --git a/versioned_docs/version-0.5.0/writing-reactors/time-and-timers.mdx b/versioned_docs/version-0.5.0/writing-reactors/time-and-timers.mdx index 104c749c0..9f7ed7d03 100644 --- a/versioned_docs/version-0.5.0/writing-reactors/time-and-timers.mdx +++ b/versioned_docs/version-0.5.0/writing-reactors/time-and-timers.mdx @@ -15,7 +15,7 @@ import { A key property of Lingua Franca is **logical time**. All events occur at an instant in logical time. By default, the runtime system does its best to align logical time with **physical time**, which is some measurement of time on the execution platform. The **lag** is defined to be physical time minus logical time, and the goal of the runtime system is maintain a small non-negative lag. -The **lag** is allowed to go negative only if the [`fast` target property](<../introduction.md#fast>) or the [`--fast`](<../introduction.md#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. +The **lag** is allowed to go negative only if the [`fast`](<../reference/target-declaration#fast>) target property or the [`--fast`](<../reference/target-declaration#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. @@ -93,8 +93,8 @@ import TS_Timer from '../assets/code/ts/src/Timer.lf'; This specifies a timer named `t` that will first trigger at the start of execution and then repeatedly trigger at intervals of one second. Notice that the time units can be left off if the value is zero. This target provides a built-in function for retrieving the logical time at which the reaction is invoked, -`get_logical_time()` -`FIXME` +`lf_time_logical()` +`get_logical_time()` `lf.time.logical()` `util.getCurrentLogicalTime()` `get_logical_time()` diff --git a/versioned_docs/version-0.6.0/writing-reactors/time-and-timers.mdx b/versioned_docs/version-0.6.0/writing-reactors/time-and-timers.mdx index 104c749c0..9f7ed7d03 100644 --- a/versioned_docs/version-0.6.0/writing-reactors/time-and-timers.mdx +++ b/versioned_docs/version-0.6.0/writing-reactors/time-and-timers.mdx @@ -15,7 +15,7 @@ import { A key property of Lingua Franca is **logical time**. All events occur at an instant in logical time. By default, the runtime system does its best to align logical time with **physical time**, which is some measurement of time on the execution platform. The **lag** is defined to be physical time minus logical time, and the goal of the runtime system is maintain a small non-negative lag. -The **lag** is allowed to go negative only if the [`fast` target property](<../introduction.md#fast>) or the [`--fast`](<../introduction.md#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. +The **lag** is allowed to go negative only if the [`fast`](<../reference/target-declaration#fast>) target property or the [`--fast`](<../reference/target-declaration#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. @@ -93,8 +93,8 @@ import TS_Timer from '../assets/code/ts/src/Timer.lf'; This specifies a timer named `t` that will first trigger at the start of execution and then repeatedly trigger at intervals of one second. Notice that the time units can be left off if the value is zero. This target provides a built-in function for retrieving the logical time at which the reaction is invoked, -`get_logical_time()` -`FIXME` +`lf_time_logical()` +`get_logical_time()` `lf.time.logical()` `util.getCurrentLogicalTime()` `get_logical_time()` diff --git a/versioned_docs/version-0.7.0/writing-reactors/time-and-timers.mdx b/versioned_docs/version-0.7.0/writing-reactors/time-and-timers.mdx index 104c749c0..8d68c15e1 100644 --- a/versioned_docs/version-0.7.0/writing-reactors/time-and-timers.mdx +++ b/versioned_docs/version-0.7.0/writing-reactors/time-and-timers.mdx @@ -15,7 +15,7 @@ import { A key property of Lingua Franca is **logical time**. All events occur at an instant in logical time. By default, the runtime system does its best to align logical time with **physical time**, which is some measurement of time on the execution platform. The **lag** is defined to be physical time minus logical time, and the goal of the runtime system is maintain a small non-negative lag. -The **lag** is allowed to go negative only if the [`fast` target property](<../introduction.md#fast>) or the [`--fast`](<../introduction.md#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. +The **lag** is alThe **lag** is allowed to go negative only if the [`fast`](<../reference/target-declaration#fast>) target property or the [`--fast`](<../reference/target-declaration#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. diff --git a/versioned_docs/version-0.8.0/writing-reactors/time-and-timers.mdx b/versioned_docs/version-0.8.0/writing-reactors/time-and-timers.mdx index 104c749c0..31c2b6cdd 100644 --- a/versioned_docs/version-0.8.0/writing-reactors/time-and-timers.mdx +++ b/versioned_docs/version-0.8.0/writing-reactors/time-and-timers.mdx @@ -15,7 +15,7 @@ import { A key property of Lingua Franca is **logical time**. All events occur at an instant in logical time. By default, the runtime system does its best to align logical time with **physical time**, which is some measurement of time on the execution platform. The **lag** is defined to be physical time minus logical time, and the goal of the runtime system is maintain a small non-negative lag. -The **lag** is allowed to go negative only if the [`fast` target property](<../introduction.md#fast>) or the [`--fast`](<../introduction.md#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time. +The **lag** is allowed to go negative only if the [`fast`](<../reference/target-declaration#fast>) target property or the [`--fast`](<../reference/target-declaration#command-line-arguments>) command-line argument is set to `true`. In that case, the program will execute as fast as possible with no regard to physical time.