diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-10-15 12:43:44 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-10-15 12:43:44 +0000 |
| commit | b46ed8c7a38d1820f4ec186b882e080ac03bd7d0 (patch) | |
| tree | 330dfdeae7d654c62979489e35925e7981f927e6 /src/lib | |
| parent | 45869ce843e33beb8f87165dca293f6abe7275ee (diff) | |
[trunk] modify type of opj_clock function
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openjp2/j2k_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/j2k_lib.c b/src/lib/openjp2/j2k_lib.c index a96df221..dbbf6e0a 100644 --- a/src/lib/openjp2/j2k_lib.c +++ b/src/lib/openjp2/j2k_lib.c @@ -42,11 +42,11 @@ OPJ_FLOAT64 opj_clock(void) { /* cout << "freq = " << ((double) freq.QuadPart) << endl; */ /* t is the high resolution performance counter (see MSDN) */ QueryPerformanceCounter ( & t ) ; - return ( t.QuadPart /(double) freq.QuadPart ) ; + return ( t.QuadPart /(OPJ_FLOAT64) freq.QuadPart ) ; #else /* Unix or Linux: use resource usage */ struct rusage t; - double procTime; + OPJ_FLOAT64 procTime; /* (1) Get the rusage data structure at this moment (man getrusage) */ getrusage(0,&t); /* (2) What is the elapsed time ? - CPU time = User time + System time */ |
