timing.c revision 814bf67459ad405a157af0b8940602024d7fadfe
/* Copyright (c) 2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "timing.h"
#include "sort.h"
/* In order to have a vaguely accurate 95th percentile, you need way
more than 20 in your subsample. */
struct timing {
unsigned int count;
bool sorted;
};
struct timing *timing_init(void)
{
}
{
}
{
} else {
unsigned int idx;
else
if (idx < TIMING_SUBSAMPLING_BUFFER)
}
}
{
}
{
}
{
}
{
}
{
return 0;
}
{
return;
}
{
return 0;
/* cast-away const - reading requires sorting */
}
{
return 0;
/* cast-away const - reading requires sorting */
}