1 USING: generic help.markup help.syntax kernel math memory
2 namespaces sequences kernel.private strings classes.singleton ;
7 ARTICLE: "system" "System interface"
12 "Getting the path to the Factor VM and image:"
17 "Getting the current time:"
22 "Exiting the Factor VM:"
23 { $subsections exit } ;
25 ARTICLE: "cpu" "Processor detection"
26 "Processor detection:"
28 "Supported processors:"
36 { $subsections x86 } ;
38 ARTICLE: "os" "Operating system detection"
39 "Operating system detection:"
41 "Supported operating systems:"
52 "Operating system families:"
61 { $values { "class" singleton-class } }
63 "Outputs a singleton class with the name of the current CPU architecture."
67 { $values { "class" singleton-class } }
69 "Outputs a singleton class with the name of the current operating system family."
73 { $values { "?" "a boolean" } }
74 { $description "Tests if this Factor instance is embedded in another application." } ;
77 { $values { "n" "an integer exit code" } }
78 { $description "Exits the Factor process." } ;
80 HELP: micros ( -- us )
81 { $values { "us" integer } }
82 { $description "Outputs the number of microseconds ellapsed since midnight January 1, 1970." }
83 { $notes "This is a low-level word. The " { $vocab-link "calendar" } " vocabulary provides features for date/time arithmetic and formatting." } ;
85 HELP: millis ( -- ms )
86 { $values { "ms" integer } }
87 { $description "Outputs the number of milliseconds ellapsed since midnight January 1, 1970." }
88 { $notes "This is a low-level word. The " { $vocab-link "calendar" } " vocabulary provides features for date/time arithmetic and formatting." } ;
91 { $values { "path" "a pathname string" } }
92 { $description "Outputs the pathname of the currently running Factor image." } ;
95 { $values { "path" "a pathname string" } }
96 { $description "Outputs the pathname of the currently running Factor VM." } ;