This module contains all system related functions and environment variables manipulation.
A group identifier, represented by a numeric ID in UNIX systems (e.g. 1000).
- toNat : Nat
The numeric group ID.
Instances For
A user identifier, represented by a numeric ID in UNIX systems (e.g. 1001).
- toNat : Nat
The numeric user ID.
Instances For
Information about the current user.
- username : String
The user's name.
The user's ID.
The group the user belongs to.
The user's login shell.
- homeDir : Option System.FilePath
The home directory of the user.
Instances For
Equations
Represents the breakdown of CPU time usage in milliseconds.
- userTime : Time.Millisecond.Offset
Time spent in user mode.
- niceTime : Time.Millisecond.Offset
Time spent on low-priority user processes.
- systemTime : Time.Millisecond.Offset
time spent in kernel mode.
- idleTime : Time.Millisecond.Offset
Time the CPU was idle.
- interruptTime : Time.Millisecond.Offset
Time spent servicing hardware interrupts.
Instances For
All the environment variables.
- toHashMap : Std.HashMap String String
The list of all environment variables.
Instances For
Equations
Equations
Instances For
Gets information about the operating system.
Equations
Instances For
Gets information about the CPU cores.
Equations
Instances For
Gets the system uptime in seconds.
Equations
Instances For
Ghe current high-resolution timestamp in nanoseconds. It is relative to an arbitrary time in the past.
Equations
Instances For
Gets the hostname of the machine.
Equations
Instances For
Sets an environment variable to value
.
Equations
Instances For
Unset an environment variable.
Equations
Instances For
Gets all environment variables.
Equations
Instances For
Gets the current user's home directory.
Equations
Instances For
Gets the temporary directory.