Back to Atomvm

Module os

main-apidocs-erlang-estdlib-os.md

latest1.2 KB
Original Source

Module os

Function Index

| getenv/1 | Get an environment variable value if defined. | | system_time/0 | Returns the current OS system time in native time unit. | | system_time/1 | Returns the current OS system time in the time unit. |

Function Details

getenv/1

getenv(Name::nonempty_string()) -> nonempty_string() | false

Name: name of the environment variable

returns: the value of environment variable or false if unset

Get an environment variable value if defined

system_time/0

system_time() -> integer()

returns: An integer representing system time.

Returns the current OS system time in native time unit.

system_time/1

system_time(TimeUnit::erlang:time_unit()) -> integer()

returns: An integer representing system time.

Returns the current OS system time in the time unit.