summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-28 17:18:30 +0200
committerdefault <nobody@localhost>2022-09-28 17:18:30 +0200
commite7e89d2d57b9308884385c2e97bd750475385cc4 (patch)
tree7db686f8696d03cd064b377d9e3c6fc4f580e8e3 /html.c
parent5647e675fd59d06b8a9a6016076b45978bdd4d4b (diff)
New function ftime().
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/html.c b/html.c
index 0ff00ea..d5af46a 100644
--- a/html.c
+++ b/html.c
@@ -522,6 +522,7 @@ d_char *html_timeline(snac *snac, char *list, int local)
d_char *s = xs_str_new(NULL);
xs_set *seen = xs_set_new(4096);
char *v;
+ double t = ftime();
s = html_user_header(snac, s, local);
@@ -540,6 +541,11 @@ d_char *html_timeline(snac *snac, char *list, int local)
s = html_user_footer(snac, s);
+ {
+ xs *s1 = xs_fmt("<!-- %lf seconds -->\n", ftime() - t);
+ s = xs_str_cat(s, s1);
+ }
+
s = xs_str_cat(s, "</body>\n</html>\n");
xs_set_free(seen);