id: brl.platform title: BRL.Platform
Function OSVersion:String()Returns a String representation of the OS version.
On Linux, this will return something like "Ubuntu" or "Fedora". On Windows and macOS, this will return the version number, such as "10.11"
SuperStrict
Framework BRL.StandardIO
Import BRL.Platform
Print OSVersion()
Function LogicalProcessorCount:Int()Returns the number of logical processors available.
Logical processors are the number of physical processors times the number of threads that can run on each.
SuperStrict
Framework brl.standardio
Import brl.platform
Print "Core count = " + LogicalProcessorCount()
Function PhysicalProcessorCount:Int()Returns the number of physical processors available.
SuperStrict
Framework brl.standardio
Import brl.platform
Print "Core count = " + PhysicalProcessorCount()