summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzy <[email protected]>2023-11-08 05:34:14 -0500
committerzy <[email protected]>2023-11-08 05:34:14 -0500
commita41867da665409c3e880c8cfd5ef904bce36f276 (patch)
treed825d4743eb23bb944f673712395e535e4753abd
parentcb06ef644feea2fae5fd88e51f59a32cf6b85610 (diff)
readme update
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index bd71ca7..923b9de 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Monitor the given address and length, and print the system stack information whe
See example in helloworld.c
- Add #include "watch.h"
-- Pass in the address and length to monitor, set the threshold, compare way, timer interval (us) etc.
+- Pass in the address and length to monitor, set the threshold, compare way, timer interval (ns) etc.
- start_watch(watch_arg); to start monitoring
- Call cancel_watch(); when need to cancel monitoring
@@ -43,7 +43,7 @@ typedef struct
long long threshold; // threshold value
unsigned char unsigned_flag; // unsigned flag (true: unsigned, false: signed)
unsigned char greater_flag; // reverse flag (true: >, false: <)
- unsigned long time; // timer interval (us)
+ unsigned long time; // timer interval (ns)
} watch_arg;
```