From e84fce96e96d8b5ee5e9531400b0735fb7e4fbb6 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Wed, 21 Apr 2010 17:30:31 -0400 Subject: Parametrize CYCLES per US --- src/ft2csv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft2csv.c b/src/ft2csv.c index ea497a3..cc6636f 100644 --- a/src/ft2csv.c +++ b/src/ft2csv.c @@ -37,7 +37,9 @@ static unsigned int skipped = 0; static unsigned int non_rt = 0; static unsigned int interleaved = 0; -static unsigned long long threshold = 2700 * 1000; /* 1 ms == 1 full tick */ +#define CYCLES_PER_US 2128 + +static unsigned long long threshold = CYCLES_PER_US * 1000; /* 1 ms == 1 full tick */ static struct timestamp* next(struct timestamp* start, struct timestamp* end, int cpu) -- cgit v1.2.2