mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* measurement
@ 2001-03-17  6:34 gis88530
  0 siblings, 0 replies; only message in thread
From: gis88530 @ 2001-03-17  6:34 UTC (permalink / raw)
  To: linux-kernel

Hello,

I use PSCHED_GET_TIME(stamp) to measure the
delay of some kernel function.

function_name( ) {
int psched_clock_scale;
psched_time_t stamp1, stamp2;
psched_tdiff_t delay;

PSCHED_GET_TIME(stamp1);
PSCHED_GET_TIME(stamp2);
delay=PSCHED_TDIFF(stamp2, stamp1);
printk(KERN_INFO "[%ld], [%ld], [%ld]\n", stamp1, stamp2, delay);
}

But the result like this [135967], [0], [135967].
I really don't know why stamp2 is 0, and
I can't find out the scale of stamp1/stamp2.
(micro-second ?? )

Thanks.
Cheers,
Steven



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-17  6:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-17  6:34 measurement gis88530

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®