aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-06 12:43:28 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-06 12:43:28 +0200
commit1eadb9ad346e7326cea9b88ba92ecd24d672e400 (patch)
treec172b085608a5bdb024d506094193a4428a11268
parentChange to only call get-datetime in parse. (diff)
downloadcalp-1eadb9ad346e7326cea9b88ba92ecd24d672e400.tar.gz
calp-1eadb9ad346e7326cea9b88ba92ecd24d672e400.tar.xz
Made benchmark main runnable again.
-rw-r--r--module/entry-points/benchmark.scm8
-rw-r--r--module/entry-points/html.scm5
-rw-r--r--module/output/html.scm2
3 files changed, 10 insertions, 5 deletions
diff --git a/module/entry-points/benchmark.scm b/module/entry-points/benchmark.scm
index 4843a80a..701d786b 100644
--- a/module/entry-points/benchmark.scm
+++ b/module/entry-points/benchmark.scm
@@ -3,15 +3,15 @@
:use-module (ice-9 getopt-long)
:use-module (util)
- :use-module (vcomponent)
+ :use-module (util app)
)
(define opt-spec
- '((file (value #t) (single-char #\f))))
+ '())
(define (main args)
(define opts (getopt-long args opt-spec))
- (cond [(option-ref opts 'file #f) => (compose load-calendars* list)]
- [else (load-calendars)]))
+ (write (getf 'calendars app: (current-app)))
+)
diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm
index e03e5907..1237f628 100644
--- a/module/entry-points/html.scm
+++ b/module/entry-points/html.scm
@@ -66,4 +66,7 @@
[(table)
(html-table-main count start)]
[else
- (error "Unknown html style: ~a" style)]))
+ (error "Unknown html style: ~a" style)])
+
+ ((@ (util time) report-time!) "all done")
+ )
diff --git a/module/output/html.scm b/module/output/html.scm
index 6dc9591b..31b57228 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -783,6 +783,8 @@
(define calendars (getf 'calendars))
(define events (getf 'event-set))
+ ((@ (util time) report-time!) "html start")
+
;; TODO This still doesn't account for PWD, file existing but is of
;; wrong type, html directory existing but static symlink missing,
;; static being a different file type, and probably something else