1 USING: generic help.markup help.syntax kernel math memory
2 namespaces sequences kernel.private strings classes.singleton ;
7 ARTICLE: "system" "System interface"
10 "Getting the path to the Factor VM and image:"
13 "Getting the current time:"
14 { $subsection micros }
15 { $subsection millis }
16 "Exiting the Factor VM:"
17 { $subsection exit } ;
19 ARTICLE: "cpu" "Processor detection"
20 "Processor detection:"
22 "Supported processors:"
23 { $subsection x86.32 }
24 { $subsection x86.64 }
30 ARTICLE: "os" "Operating system detection"
31 "Operating system detection:"
33 "Supported operating systems:"
34 { $subsection freebsd }
36 { $subsection macosx }
37 { $subsection openbsd }
38 { $subsection netbsd }
39 { $subsection solaris }
42 "Operating system families:"
45 { $subsection windows } ;
49 { $values { "class" singleton-class } }
51 "Outputs a singleton class with the name of the current CPU architecture."
55 { $values { "class" singleton-class } }
57 "Outputs a singleton class with the name of the current operating system family."
61 { $values { "?" "a boolean" } }
62 { $description "Tests if this Factor instance is embedded in another application." } ;
65 { $values { "n" "an integer exit code" } }
66 { $description "Exits the Factor process." } ;
68 HELP: micros ( -- us )
69 { $values { "us" integer } }
70 { $description "Outputs the number of microseconds ellapsed since midnight January 1, 1970." }
71 { $notes "This is a low-level word. The " { $vocab-link "calendar" } " vocabulary provides features for date/time arithmetic and formatting." } ;
73 HELP: millis ( -- ms )
74 { $values { "ms" integer } }
75 { $description "Outputs the number of milliseconds ellapsed since midnight January 1, 1970." }
76 { $notes "This is a low-level word. The " { $vocab-link "calendar" } " vocabulary provides features for date/time arithmetic and formatting." } ;
79 { $values { "path" "a pathname string" } }
80 { $description "Outputs the pathname of the currently running Factor image." } ;
83 { $values { "path" "a pathname string" } }
84 { $description "Outputs the pathname of the currently running Factor VM." } ;