Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time command #346

Merged
merged 3 commits into from
Jun 5, 2022
Merged

Add time command #346

merged 3 commits into from
Jun 5, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jun 5, 2022

> time date
2022-06-05 11:06:29
Executed 'date' in 0.012998s

> time lisp /tmp/fibonacci.lsp
8
Executed 'lisp /tmp/fibonacci.lsp' in 0.021997s

> time sleep 1.0
Executed 'sleep 1.0' in 1.073989s

@vinc vinc marked this pull request as ready for review June 5, 2022 11:24
@vinc vinc merged commit d5512ba into trunk Jun 5, 2022
@vinc vinc deleted the feature/add-time-command branch June 5, 2022 11:24
vinc added a commit that referenced this pull request Jun 5, 2022
* Add time command

* Fix merge artefact

* Fix call to realtime
vinc added a commit that referenced this pull request Jun 6, 2022
* Add println

* Rewrite fib

* Refactor parse

* Update lisp completer

* Store args in env

* Add 'or' and 'and' builtins

* Add factorial.lsp

* Update docs

* Add cat operation

* Add join operation

* Add system command

* Add time command (#346)

* Add time command

* Fix merge artefact

* Fix call to realtime

* Replace clock syscalls with device files (#345)

* Replace clock syscalls with device files

* Add missing newline to read

* Update time command

* Use Rc<RefCell<Env>>

* Add first TCO

* Remove Box

* Change result of env_for_lambda

* Run clippy

* Remove env clone

* Remove TCO

* Change return type of env_for_lambda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant