diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-10-28 16:21:59 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-10-28 16:21:59 +0000 |
commit | 7a9aac91abc8386f6907b17d11a439ac7e190773 (patch) | |
tree | 976a3a1354b6d1e339528c03c8354a82c442dc33 /src | |
parent | 733606fc295d5c9b770ec0413e06222868db67e9 (diff) | |
download | bcfg2-7a9aac91abc8386f6907b17d11a439ac7e190773.tar.gz bcfg2-7a9aac91abc8386f6907b17d11a439ac7e190773.tar.bz2 bcfg2-7a9aac91abc8386f6907b17d11a439ac7e190773.zip |
add measurement for parse time
(Logical change 1.349)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1449 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/sbin/bcfg2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 00c7e5795..bfb41738c 100644 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -147,7 +147,9 @@ if __name__ == '__main__': print "failed to write config cache file %s" % (setup['cache']) try: + pt = time() cfg = XML(r) + timeinfo.set('parse', str(time() - pt)) except: print "got error from server" raise SystemExit, 1 |