Merge branch 'nanos' of git://factorcode.org/git/factor into nanos

db4
Doug Coleman 2009-11-18 18:36:03 -06:00
commit 23a1c92262
2 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ IN: io.pipes.windows.nt
"-" %
32 random-bits #
"-" %
micros #
system-micros #
] "" make ;
M: winnt (pipe) ( -- pipe )

View File

@ -1,6 +1,5 @@
USING: generic help.markup help.syntax kernel math memory
namespaces sequences kernel.private strings classes.singleton
tools.time ;
namespaces sequences kernel.private strings classes.singleton ;
IN: system
ABOUT: "system"
@ -18,7 +17,7 @@ ARTICLE: "system" "System interface"
"Getting the current time:"
{ $subsections
system-micros
system-micros
system-millis
}
"Getting a monotonically increasing nanosecond count:"
{ $subsections nano-count }
@ -93,7 +92,7 @@ HELP: system-millis ( -- ms )
HELP: nano-count ( -- ns )
{ $values { "ns" integer } }
{ $description "Outputs a monotonically increasing count of nanoseconds elapsed since an arbitrary starting time. The difference of two calls to this word allows timing. This word is unaffected by system clock changes." }
{ $notes "This is a low-level word. The " { $link time } " word may be used to time code execution time. For system time, use " { $link system-micros } "." } ;
{ $notes "This is a low-level word. The " { $vocab-link "tools.time" } " vocabulary defines words to time code execution time. For system time, use " { $link system-micros } "." } ;
HELP: image
{ $values { "path" "a pathname string" } }