diff options
author | rpj <rpj> | 2011-03-03 23:37:20 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-03 23:37:20 +0000 |
commit | e470da85f7b9426eea03d66086c2822bf29e9b05 (patch) | |
tree | b3747768258dc62752612327904be1f1067d5c7f /tests/rwlock7.c | |
parent | 1170175259781ece4a8d99d517230f4b9ecb7b50 (diff) |
Some cleanups, mostly x86_64 compat plus interlocked macros
Diffstat (limited to 'tests/rwlock7.c')
-rw-r--r-- | tests/rwlock7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rwlock7.c b/tests/rwlock7.c index 91466e4..1e8fdf0 100644 --- a/tests/rwlock7.c +++ b/tests/rwlock7.c @@ -122,7 +122,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. @@ -187,13 +187,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; } |