2 #include <msp/time/units.h>
11 void Activity::add_bytes(unsigned n)
13 // Scale for correct integral
17 void Activity::tick(const Time::TimeDelta &dt)
19 static Time::TimeDelta last_dt;
20 static float decay = 0;
24 // Half-life in 10 seconds
25 decay = pow(0.933f, dt/Time::sec);