From 882f2f0d6f0680990be5debde222cfd326afe0b8 Mon Sep 17 00:00:00 2001 From: ddomingo Date: Thu, 4 Dec 2008 14:43:33 +1000 Subject: more edits --- doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml index c053c329..9c5e5a9f 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml @@ -178,7 +178,18 @@ delta = gettimeofday_s() - foo[tid()] -In , the first statement sets a timestamp associated with the returned value of the handler function tid() as a reference point. The second statement computes a value for the variable delta by subtracting the associated value the reference point from the current gettimeofday_s(). Note that the first statement writes the value of gettimeofday_s() into the appropriate key of array foo, while in the second statement the value of foo[tid()] is read from the array in order to compute for delta. + + In , the first statement sets a timestamp associated + with the returned value of the handler function tid() as a + reference point. + The second statement computes a value for the variable + delta by subtracting the associated value the reference point from the + current gettimeofday_s(). Note that the first statement writes the value + of gettimeofday_s() into the appropriate key of array + foo, while in the second statement the value of + foo[tid()] is read from the array in order to compute + for delta. + reading values from arrays -- cgit