diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-08 02:02:29 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-04-08 02:02:29 +0000 |
commit | 0e45a5a14d5707f5a01186c1f5438140c17205bd (patch) | |
tree | 7cb14b9475be832b53b38a7758073f024f244313 /bench.cpp | |
parent | e1479a254f6c350283e39d4d77b301cda1046d9b (diff) | |
download | cryptopp-0e45a5a14d5707f5a01186c1f5438140c17205bd.tar.gz |
avoid hash keyword
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@160 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'bench.cpp')
-rw-r--r-- | bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -136,7 +136,7 @@ void BenchMark(const char *name, StreamTransformation &cipher, double timeTotal) OutputResultBytes(name, double(blocks) * BUF_SIZE, timeTaken); } -void BenchMark(const char *name, HashTransformation &hash, double timeTotal) +void BenchMark(const char *name, HashTransformation &ht, double timeTotal) { const int BUF_SIZE=1024; SecByteBlock buf(BUF_SIZE); @@ -150,7 +150,7 @@ void BenchMark(const char *name, HashTransformation &hash, double timeTotal) { blocks *= 2; for (; i<blocks; i++) - hash.Update(buf, BUF_SIZE); + ht.Update(buf, BUF_SIZE); timeTaken = double(clock() - start) / CLOCK_TICKS_PER_SECOND; } while (timeTaken < 2.0/3*timeTotal); |