Example #1
0
void timing_stop(int t)
{
	struct timeval now;

	gettimeofday(&now, NULL);
	timeval_accumulate(&timings[t].start, &now, &timings[t].total);
}
Example #2
0
void timing_stop(int t)
{
	struct timing *tm;
	struct timeval now;

	tm = get_timing(t);
	gettimeofday(&now, NULL);
	timeval_accumulate(&tm->start, &now, &tm->total);
}