TORCS  1.3.9
The Open Racing Car Simulator
os.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  os.cpp -- os specific function table
3  -------------------
4  created : Fri Aug 13 22:26:42 CEST 1999
5  copyright : (C) 1999 by Eric Espie
6  email : torcs@free.fr
7  version : $Id$
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
24 #ifdef WIN32
25 #include <windows.h>
26 #endif
27 #include <tgf.h>
28 #include "os.h"
29 
30 
31 /*
32  * Globals definitions
33  */
34 #ifdef WIN32
35 __declspec(dllexport)
36 #endif // WIN32
37 tGfOs GfOs = {0};
38 
40 void
41 gfOsInit(void)
42 {
43 }
44 
45 
49 double
51 {
52  if (GfOs.timeClock) {
53  return GfOs.timeClock();
54  } else {
55  return 0;
56  }
57 }
void gfOsInit(void)
Init of the module.
Definition: os.cpp:41
Definition: os.h:37
The Gaming Framework API.
tGfOs GfOs
Definition: os.cpp:37
tfTimeClock timeClock
Definition: os.h:46
double GfTimeClock(void)
Get the time in seconds.
Definition: os.cpp:50