flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 12 Jul 2021, 07:08
There is GETTIME
Code: SYS_CLOCK_GETTIME = 265 CLOCK_MONOTONIC = 1 struc timespec { .tv_sec rd 1 .tv_nsec rd 1 } time timespec mov ecx,time mov ebx,CLOCK_MONOTONIC mov eax,SYS_CLOCK_GETTIME syscall ; or int 0x80 |
|||
![]() |
|
redsock 12 Jul 2021, 20:45
This is also exposed via the vDSO for syscall-free gettimeofday operation, which provides microsecond resolution.
Code: man 7 vdso |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.