/**
-* Statistic events
-* @date 3.9.2006
-* @author Sebastian Hack
-*/
+ * Statistic events
+ * @date 3.9.2006
+ * @author Sebastian Hack
+ * @cvs-id $Id$
+ */
#include <assert.h>
#include <string.h>
}
}
+void be_stat_ev_dbl(const char *ev, double value)
+{
+ if(sp > 0) {
+ ev_env_t *env = &envs[sp - 1];
+ if(env->f)
+ fprintf(env->f, "%s%s;%f\n", env->tag, ev, value);
+ }
+}
+
+void be_stat_ev_ull(const char *ev, ulong64 value)
+{
+ if(sp > 0) {
+ ev_env_t *env = &envs[sp - 1];
+ if(env->f)
+ fprintf(env->f, "%s%s;%" ULL_FMT "\n", env->tag, ev, value);
+ }
+}
+
int be_stat_ev_is_active(void)
{
return sp > 0 && envs[sp - 1].f;