util/WallclockTimer: (float) cast operator

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1924 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-13 00:17:22 +00:00
parent 9decf95a09
commit 97299ba370

View File

@ -54,6 +54,11 @@ public:
* timer is running, and if it is stopped.
*/
operator double() { return getRuntimeAsDouble(); }
/**
* Returns the elapsed time as \c float. This works while the
* timer is running, and if it is stopped.
*/
operator float() { return (float)getRuntimeAsDouble(); }
/**
* Returns the elapsed time as \c int. This works while the timer
* is running, and if it is stopped.