gtk/tests/variable.h
Owen W. Taylor 9690567d50 animated-resizing: enhance output
Show the average and standard deviation of the latency in addition to
the frame rate. Add options to print the output in machine-readable form,
and to control the frequency and total number of statistics that will be
output.

https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:51 -05:00

24 lines
637 B
C

#ifndef __VARIABLE_H__
#define __VARAIBLE_H__
typedef struct
{
double weight;
double sum;
double sum2;
} Variable;
#define VARIABLE_INIT { 0, 0.0, 0.0 }
void variable_add_weighted (Variable *variable,
double value,
double weight);
void variable_add (Variable *variable,
double value);
double variable_mean (Variable *variable);
double variable_standard_deviation (Variable *variable);
void variable_reset (Variable *variable);
#endif /* __VARAIBLE_H__ */