Skip to content
FutureBlitz

    Install

    Import std.os.system

    System

    std.os.system

    struct

    Public Struct System

    System's Static Properties.

    Examples

    Expect(System.CpuCount >= 1)
    Expect(System.TotalMemory > 0)
    Expect("{System.Platform}" != "")

    std/os/system.fb, line 44

    • Public Static Property Platform: Platform property #

      The OS the program was built for, which it runs on.

    • Public Static Property Arch: Arch property #

      The processor the program was built for, which it runs on, or emulates.

    • Public Static Property CpuCount: Int property #

      How many threads can run at once: the processors the OS lets the program use, 1 or more.

    • Public Static Property TotalMemory: Int64 property #

      The machine's memory, in bytes.

    • Public Static Property Hostname: String? property #

      The machine's name on its network, or Null when the OS doesn't say.

    • Public Static Property UserName: String? property #

      The name of the user the program runs as, or Null when the OS doesn't say.

    Report an issue with this page or with FutureBlitz on GitHub.