diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2019-01-31 14:29:54 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2019-01-31 14:29:54 +0000 |
commit | 04adb7f5027fb9f8b4368e4eaa561e14591bb1a7 (patch) | |
tree | 7f3af533e28c692c020eabd152b49762f340f106 /lib/sg_pt_win32.c | |
parent | a918d1a30569c4d3f09cc87836ff19215db6d8b7 (diff) | |
download | sg3_utils-04adb7f5027fb9f8b4368e4eaa561e14591bb1a7.tar.gz |
linux: add nanosecond durations when SG3_UTILS_LINUX_NANO environment variable given
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@809 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_win32.c')
-rw-r--r-- | lib/sg_pt_win32.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sg_pt_win32.c b/lib/sg_pt_win32.c index e357ff22..65e3f2b9 100644 --- a/lib/sg_pt_win32.c +++ b/lib/sg_pt_win32.c @@ -1360,6 +1360,14 @@ get_scsi_pt_duration_ms(const struct sg_pt_base * vp __attribute__ ((unused))) return -1; } +/* If not available return 0 otherwise return number of nanoseconds that the + * lower layers (and hardware) took to execute the command just completed. */ +uint64_t +get_pt_duration_ns(const struct sg_pt_base * vp __attribute__ ((unused))) +{ + return 0; +} + int get_scsi_pt_transport_err(const struct sg_pt_base * vp) { |