~vjsamuel/gearmand/fix-bug-868883

« back to all changes in this revision

Viewing changes to benchmark/benchmark.cc

  • Committer: Brian Aker
  • Date: 2011-06-22 15:49:27 UTC
  • mfrom: (439.1.7 gearmand-trunk)
  • Revision ID: brian@tangent.org-20110622154927-ezro6sntfu48zf1q
Merge in curent ttrunk into the mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Public definitions
19
19
 */
20
20
 
21
 
void benchmark_init(gearman_benchmark_st *benchmark)
22
 
{
23
 
  memset(benchmark, 0, sizeof(gearman_benchmark_st));
24
 
  gettimeofday(&(benchmark->total), NULL);
25
 
  gettimeofday(&(benchmark->begin), NULL);
26
 
}
27
 
 
28
21
void benchmark_check_time(gearman_benchmark_st *benchmark)
29
22
{
30
23
  benchmark->jobs++;