From 04adb7f5027fb9f8b4368e4eaa561e14591bb1a7 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 31 Jan 2019 14:29:54 +0000 Subject: 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 --- lib/sg_pt_win32.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/sg_pt_win32.c') 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) { -- cgit v1.2.3