From e9eafc74809319bcbe97f0661a710601fe3d1c1e Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Fri, 8 Jun 2001 22:40:09 +0000 Subject: [PATCH] Now prints the elapsed time. --- test/httptest.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/httptest.lua b/test/httptest.lua index b88475d..8c78192 100644 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -1,8 +1,11 @@ -- load http assert(dofile("../lua/http.lua")) assert(dofile("../lua/base64.lua")) +assert(dofile("../lua/buffer.lua")) assert(dofile("auxiliar.lua")) +t = _time() + -- needs Alias from /home/i/diego/public/html/luasocket/test to -- /luasocket-test -- needs ScriptAlias from /home/i/diego/public/html/luasocket/test/cgi-bin @@ -83,3 +86,5 @@ assert(f and m and s and not e, join(s, e)) assert(compare(pdir .. "auth/index.html", f), "documents differ") print("passed all tests") + +print(format("done in %.2fs", _time() - t))