flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
emc 16 Nov 2011, 11:43
Hello,
I am trying to get the clock time on Linux. I think I have to use the gettimeofday() syscall, but I don't understant very well this page: http://www.kernel.org/doc/man-pages/online/pages/man2/gettimeofday.2.html (seconds and microseconds, wtf). I am not sure gettimeofday() is the more suitable syscall to do that I want to do. What do you think about that? Have you any ideas, please? Regards ![]() _________________ ;; emc |
|||
![]() |
|
Matrix 16 Nov 2011, 17:15
well its your best option for a high resolution timer, you may use RDTSC (pentium and later) if you have a stable CPU clock frequency though.
|
|||
![]() |
|
Matrix 25 Nov 2011, 01:37
though we're still off-topic with our C-codes on linux ;<
|
|||
![]() |
|
emc 25 Nov 2011, 16:41
Thanks for replies.
We are not off-topic with our C codes, I want write my code in assembly, but thanks for the C code example, it's useful to get a better idea of the problem ![]() |
|||
![]() |
|
f0dder 26 Nov 2011, 16:08
Matrix wrote: well its your best option for a high resolution timer, you may use RDTSC (pentium and later) if you have a stable CPU clock frequency though. _________________ ![]() |
|||
![]() |
|
Matrix 26 Nov 2011, 22:18
f0dder wrote:
yeah, i have considered HRT... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.