This singleton manages the current timer used by the dynamic view that exploits the currentTime
view attribute.
More...
#include <ilserver/mvview.h>
Static Public Member Functions | |
static IlsBoolean | AutoStart () |
Returns IlsTrue if the time manager is in autostart mode. More... | |
static void | AutoStart (IlsBoolean b) |
Controls the autostart mode of the time manager. More... | |
static const IlsMvDateTime & | GetCurrentTime () |
Returns the current time. More... | |
static int | GetDefaultRefreshRate () |
Returns the default refresh rate used to update the currentTime attribute. More... | |
static void | SetDefaultRefreshRate (int r) |
Sets the default refresh rate used to update the currentTime attribute. More... | |
This singleton manages the current timer used by the dynamic view that exploits the currentTime
view attribute.
Library: mvserver
By default, this object starts to update the current time as soon as the dynamic view is opened. You can control this behavior using the autostart
property. As soon as this manager is started, all the dynamic views that use the currentTime
attribute are updated at a refresh rate. The default refresh rate is 1 second.
IlsTimer
, IlsTimerManager
.
|
static |
Returns IlsTrue
if the time manager is in autostart mode.
Autostart mode means that the time manager will start to update the current time as soon as a dynamic view using the currentTime
attribute is opened.
IlsTrue
if the time manager is in autostart mode
|
static |
Controls the autostart mode of the time manager.
The default value is IlsTrue
.
b | autostart mode |
|
static |
Returns the current time.
|
static |
Returns the default refresh rate used to update the currentTime
attribute.
The default value is 1 second.
currentTime
attribute
|
static |
Sets the default refresh rate used to update the currentTime
attribute.
You can use the ILS_MVTIME_PERIOD
environment variable to control the default value.
r | default refresh rate |