diff options
author | default <nobody@localhost> | 2022-09-28 17:18:30 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-28 17:18:30 +0200 |
commit | e7e89d2d57b9308884385c2e97bd750475385cc4 (patch) | |
tree | 7db686f8696d03cd064b377d9e3c6fc4f580e8e3 /html.c | |
parent | 5647e675fd59d06b8a9a6016076b45978bdd4d4b (diff) |
New function ftime().
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |