flashbench: fix time_to_ns for 32 bit systems

Incorrect type conversion results in potentially
negative time values.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/dev.c b/dev.c
index b9468ce..f1718be 100644
--- a/dev.c
+++ b/dev.c
@@ -26,7 +26,7 @@
 
 static inline long long time_to_ns(struct timespec *ts)
 {
-	return ts->tv_sec * 1000 * 1000 * 1000 + ts->tv_nsec;
+	return (long long)ts->tv_sec * 1000 * 1000 * 1000 + ts->tv_nsec;
 }
 
 static long long get_ns(void)