Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

System Struct Reference

List of all members.

Public Types

enum  Interval { Microsec = 1, Millisec = 1000, Second = 1_000_000, Minute = 60_000_000 }

Static Public Member Functions

 this ()
ulong getMillisecs ()
ulong getBeginTime ()
void sleep (uint interval=uint.max)
Thread createThread (int(*dg)(), bool start=false)
char[] error ()
char[] error (uint errcode)

Static Private Attributes

uint frequency
ulong beginTime
ulong beginCounter

Detailed Description

Some system-specific functionality that doesn't belong anywhere else. This needs some further thought and refinement.

Definition at line 120 of file System.d.


Member Enumeration Documentation

enum Interval
 

Time interval multipliers. All Mango intervals are based upon microseconds.

Enumeration values:
Microsec 
Millisec 
Second 
Minute 

Definition at line 133 of file System.d.


Member Function Documentation

this  )  [inline, static]
 

Setup the timing information for later use. Note how much effort it takes to get epoch time in Win32 ...

Definition at line 147 of file System.d.

References beginCounter, beginTime, Exception, frequency, time, and version.

ulong getMillisecs  )  [inline, static]
 

Return the number of milliseconds since January 1st 1970

Definition at line 205 of file System.d.

References beginCounter, beginTime, frequency, time, and version.

ulong getBeginTime  )  [inline, static]
 

The time this executable started (ms since Jan 1st 1970)

Definition at line 230 of file System.d.

References beginTime.

void sleep uint  interval = uint.max  )  [inline, static]
 

Send this thread to sleep for a while. The time interval is measured in microseconds. Specifying a period value of uint.max will cause the calling thread to sleep forever.

Definition at line 243 of file System.d.

References version.

Thread createThread int(*  dg)(),
bool  start = false
[inline, static]
 

Create a thread for the given delegate, and optionally start it up.

Definition at line 263 of file System.d.

char [] error  )  [inline, static]
 

Definition at line 275 of file System.d.

References version.

char [] error uint  errcode  )  [inline, static]
 

Definition at line 287 of file System.d.

References strlen(), and version.


Member Data Documentation

uint frequency [static, private]
 

Definition at line 122 of file System.d.

Referenced by getMillisecs(), and this().

ulong beginTime [static, private]
 

Definition at line 123 of file System.d.

Referenced by getBeginTime(), getMillisecs(), and this().

ulong beginCounter [static, private]
 

Definition at line 124 of file System.d.

Referenced by getMillisecs(), and this().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 7 19:07:11 2004 for Mango by doxygen 1.3.6