Difference between
modified post 29b593 by Anonymous on Mon 21st Oct 2019 14:44
original post 5a850ae94 by Anonymous on Mon 21st Oct 2019 14:09
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | diff --git a/ptxdist/local_src/ecu01-codesys/io_driver/ecu01softcompcap.cpp b/ptxdist/local_src/ecu01-codesys/io_driver/ecu01softcompcap.cpp | |
| 2 | - | index c5c85b5..653eb95 100644 | |
| 2 | + | index c5c85b5..78440b7 100644 | |
| 3 | 3 | --- a/ptxdist/local_src/ecu01-codesys/io_driver/ecu01softcompcap.cpp | |
| 4 | 4 | +++ b/ptxdist/local_src/ecu01-codesys/io_driver/ecu01softcompcap.cpp | |
| 5 | - | @@ -45,26 +45,29 @@ | |
| 5 | + | @@ -32,6 +32,7 @@ | |
| 6 | + | #include <time.h> | |
| 6 | 10 | ||
| 7 | - | // **************************************************************************** | |
| 11 | + | /*****************************************************************************/ | |
| 8 | - | // function: diffUSec | |
| 12 | + | /* here: Defines */ | |
| 9 | - | // **************************************************************************** | |
| 13 | + | @@ -54,7 +55,10 @@ static inline int diffUSec(struct timespec t1, struct timespec t2) | |
| 14 | + | // calculate and return the difference of t1 and t2 in microseconds | |
| 10 | 15 | ||
| 16 | + | diff = USEC_PER_SEC * ((int) t1.tv_sec - (int) t2.tv_sec); |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
eckelmann.kpaste.net RSS