Fix sync engine completion latency

td_io_queue() needs to differentiate between the sync and async
engines wrt setting issue_time.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 2a11ed3..db33379 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -189,12 +189,17 @@
 {
 	int ret;
 
+	if (td->io_ops->flags & FIO_SYNCIO)
+		fio_gettime(&io_u->issue_time, NULL);
 
 	if (io_u->ddir != DDIR_SYNC)
 		td->io_issues[io_u->ddir]++;
 
 	ret = td->io_ops->queue(td, io_u);
-	fio_gettime(&io_u->issue_time, NULL);
+
+	if ((td->io_ops->flags & FIO_SYNCIO) == 0)
+		fio_gettime(&io_u->issue_time, NULL);
+
 	return ret;
 }