feisty meow concerns codebase  2.140
time_control.h
Go to the documentation of this file.
1 #ifndef TIME_CONTROL_CLASS
2 #define TIME_CONTROL_CLASS
3 
4 /*****************************************************************************\
5 * *
6 * Name : time_control
7 * Author : Chris Koeritz
8 * *
9 *******************************************************************************
10 * Copyright (c) 1995-$now By Author. This program is free software; you can *
11 * redistribute it and/or modify it under the terms of the GNU General Public *
12 * License as published by the Free Software Foundation; either version 2 of *
13 * the License or (at your option) any later version. This is online at: *
14 * http://www.fsf.org/copyleft/gpl.html *
15 * Please send any updates to: fred@gruntose.com *
16 \*****************************************************************************/
17 
18 #include "earth_time.h"
19 
23 
24 namespace timely {
25 
27 
28 class time_control : public virtual basis::nameable
29 {
30 public:
32 
33  static void sleep_ms(basis::un_int msec);
35 
39  bool set_time(const time_locus &new_time);
41 
43 };
44 
45 } //namespace.
46 
47 #endif
48 
Root object for any class that knows its own name.
Definition: contracts.h:123
Provides some functions that affect time, or ones perception of time.
Definition: time_control.h:29
static void sleep_ms(basis::un_int msec)
a system independent name for a forced snooze measured in milliseconds.
bool set_time(const time_locus &new_time)
makes the current time equal to "new_time".
An object that represents a particular point in time.
Definition: earth_time.h:188
unsigned int un_int
Abbreviated name for unsigned integers.
Definition: definitions.h:62
#include <time.h>
Definition: earth_time.cpp:37