time measuring by nanoseconds / retrieving cpu ticks


2006-04-04 12:13:37 AM
cppbuilder77
hi,
i am trying to measure time between two events by nanoseconds.
i think i should compare cpu ticks between start and end time.
how can i retrieve the cpu ticks?
thanks for your interests