diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-09-09 10:12:20 +0300 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-09-09 10:12:20 +0300 |
commit | 6290bd4353974745f46e2711947d063503f29323 (patch) | |
tree | 78b92ef53140ea0e2c0eafb22c4f302102590b03 /resourceqt-client/client.cpp | |
parent | cd3f7b97ddced403fe2d6eb9091a8903ea186128 (diff) |
Changed timer to return ms as a long int
Diffstat (limited to 'resourceqt-client/client.cpp')
-rw-r--r-- | resourceqt-client/client.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/resourceqt-client/client.cpp b/resourceqt-client/client.cpp index daf0486..7f999b2 100644 --- a/resourceqt-client/client.cpp +++ b/resourceqt-client/client.cpp @@ -185,9 +185,9 @@ void Client::showResources(const QList<Resource*> &resList) void Client::resourceAcquiredHandler(const QList<ResourceType>& /*grantedResList*/) { - double ms = stop_timer(); - if( ms > 0.0 ) { - output << "Operation took " << (quint32)ms << "ms"; + long int ms = stop_timer(); + if( ms > 0 ) { + output << "Operation took " << ms << "ms"; } QList<Resource*> list = resourceSet->resources(); @@ -203,9 +203,9 @@ void Client::resourceAcquiredHandler(const QList<ResourceType>& /*grantedResList void Client::resourceDeniedHandler() { - double ms = stop_timer(); - if( ms > 0.0 ) { - output << "Operation took " << (quint32)ms << "ms"; + long int ms = stop_timer(); + if( ms > 0 ) { + output << "Operation took " << ms << "ms"; } output << "\nManager denies access to resources!" << endl; @@ -214,9 +214,9 @@ void Client::resourceDeniedHandler() void Client::resourceLostHandler() { - double ms = stop_timer(); - if( ms > 0.0 ) { - output << "Operation took " << (quint32)ms << "ms"; + long int ms = stop_timer(); + if( ms > 0 ) { + output << "Operation took " << ms << "ms"; } output << "\nLost resources from manager!" << endl; @@ -225,9 +225,9 @@ void Client::resourceLostHandler() void Client::resourceReleasedHandler() { - double ms = stop_timer(); - if( ms > 0.0 ) { - output << "Operation took " << (quint32)ms << "ms"; + long int ms = stop_timer(); + if( ms > 0 ) { + output << "Operation took " << ms << "ms"; } output << "\nAll resources released" << endl; |