[Oberon] clock_gettime
peter at easthope.ca
peter at easthope.ca
Sun Jul 12 17:40:11 CEST 2026
>From A2/source/Linux.Unix.Mod,
CLOCK_MONOTONIC* = 1;
CLOCK_MONOTONIC_RAW* = 4;
CLOCK_PROCESS_CPUTIME_ID* = 2;
CLOCK_REALTIME* = 0;
CLOCK_THREAD_CPUTIME_ID* = 3;
...
clock_gettime- : PROCEDURE {C} (clk_id: INTEGER; tp: ADDRESS): INTEGER;
clock_getres- : PROCEDURE {C} (clk_id: INTEGER; res: ADDRESS): INTEGER;
Web searches reported that the Linux kernel introduced
CLOCK_MONOTONIC in 2.5.63,
CLOCK_MONOTONIC_RAW in 2.6.28,
CLOCK_PROCESS_CPUTIME_ID in 2.6.12,
CLOCK_REALTIME in 2.6.0,
CLOCK_THREAD_CPUTIME_ID in 2.6.12,
clock_gettime in 2.6 and
clock_getres in 2.6.
Whereas in a 32 bit machine here, uname -a reports,
Linux puppypc 2.6.35.13_xo1.5-20110713.2219.olpc.da7074b_Puppy .
So the clock calls should work.
Ideas?
Thanks, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 778 508 0020 <= decommissioning
Bcc: peter at e a s t h o p e dot c a
projects: en.wikibooks.org/wiki/User:PeterEasthope
More information about the Oberon
mailing list