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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user