The Lambda Lab
/
projects
/
forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a2b49
)
Added time primitive.
author
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 14 Sep 2018 22:42:36 +0000
(
00:42
+0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 14 Sep 2018 22:42:36 +0000
(
00:42
+0200)
src/forth.jl
patch
|
blob
|
history
diff --git
a/src/forth.jl
b/src/forth.jl
index
c298b72
..
a7425ae
100644
(file)
--- a/
src/forth.jl
+++ b/
src/forth.jl
@@
-1434,4
+1434,9
@@
DUMP = defPrimWord("DUMP", () -> begin
return NEXT
end)
+TIME = defPrimWord("TIME", () -> begin
+ pushPS(Int64(time_ns()))
+ return NEXT
+end)
+
end