From e2838a611834b5ab8817dae867e46da634a0ee84 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 21 Jan 2016 11:53:16 -0600 Subject: [PATCH] Update to use 64-bit timer when available --- configs/vsn/src/sif.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/vsn/src/sif.c b/configs/vsn/src/sif.c index 16ae003b1b..d970b9a4e8 100644 --- a/configs/vsn/src/sif.c +++ b/configs/vsn/src/sif.c @@ -601,8 +601,8 @@ int sif_main(int argc, char *argv[]) if (lis) { const struct lis331dl_vector_s * a; + systime_t time_stamp = clock_systimer(); int i; - uint32_t time_stamp = clock_systimer(); /* Set to 400 Hz : 3 = 133 Hz/axis */ @@ -621,7 +621,8 @@ int sif_main(int argc, char *argv[]) } } - printf("Time diff = %d\n", clock_systimer() - time_stamp); + printf("Time diff = %ld\n", + (long)(clock_systimer() - time_stamp)); lis331dl_deinit(lis); }