From: Kern Sibbald Date: Thu, 27 Mar 2014 18:01:41 +0000 (+0100) Subject: Backuport from BEE X-Git-Tag: Release-7.0.0~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d1c74e941a171ed2803d30244bc7eee49ad13db;p=bacula%2Fbacula Backuport from BEE --- diff --git a/regress/test_duration b/regress/test_duration new file mode 100755 index 0000000000..6a48ad60ea --- /dev/null +++ b/regress/test_duration @@ -0,0 +1,12 @@ +#!/usr/bin/env python2 +from time import time as now + +t = now() +fn = open('testtime.out', 'r') +s = fn.readline() +fn.close() +diff = t - float(s) +h = int(diff / 3600) +m = int((diff - h * 3600) / 60) +sec = diff - h * 3600 - m * 60 +print '%02d:%02d:%02d %ds' % (h, m, sec, t-float(s)) diff --git a/regress/test_starttime b/regress/test_starttime new file mode 100755 index 0000000000..266b724c47 --- /dev/null +++ b/regress/test_starttime @@ -0,0 +1,6 @@ +#!/usr/bin/env python +from time import time as now + +fn = open('testtime.out', 'w+') +fn.write('%s' % now()) +fn.close()