Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/4th/lib/timer.4th

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


\ 4tH library - TIMER - Copyright 2003,2004 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License

[UNDEFINED] timer-stop [IF]
defer timer-stop

\ default word if user did not define his own
:noname . ." seconds " ; is timer-stop

\ these words expect a clean stack when called
\ call this word at the very beginning
: timer-reset time ;

\ call this word at the very end
: .elapsed time swap - timer-stop ;
[THEN]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].