summaryrefslogtreecommitdiff
path: root/tests/rwlock8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rwlock8.c')
-rw-r--r--tests/rwlock8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rwlock8.c b/tests/rwlock8.c
index c83a775..207646c 100644
--- a/tests/rwlock8.c
+++ b/tests/rwlock8.c
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
assert(pthread_rwlock_init (&data[data_count].lock, NULL) == 0);
}
- _ftime(&currSysTime1);
+ PTW32_FTIME(&currSysTime1);
/*
* Create THREADS threads to access shared data.
@@ -193,13 +193,13 @@ main (int argc, char *argv[])
printf ("%d thread updates, %d data updates\n",
thread_updates, data_updates);
- _ftime(&currSysTime2);
+ PTW32_FTIME(&currSysTime2);
printf( "\nstart: %ld/%d, stop: %ld/%d, duration:%ld\n",
currSysTime1.time,currSysTime1.millitm,
currSysTime2.time,currSysTime2.millitm,
- (currSysTime2.time*1000+currSysTime2.millitm) -
- (currSysTime1.time*1000+currSysTime1.millitm));
+ ((long)((currSysTime2.time*1000+currSysTime2.millitm) -
+ (currSysTime1.time*1000+currSysTime1.millitm))));
return 0;
}