LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg_os.h File Reference

Operating-system specific functions. More...

#include "nrg_core.h"

Go to the source code of this file.

Functions

Status nrg::os::init (void)
 Perform OS initialisation routines.
 
void nrg::os::uninit (void)
 Perform OS uninitiasation routines.
 
uint64_t nrg::os::microseconds ()
 Get a monotonic representation of time in microseconds.
 
uint64_t nrg::os::milliseconds ()
 Get a monotonic representation of time in milliseconds.
 
uint64_t nrg::os::seconds ()
 Get a monotonic representation of time in seconds.
 
uint32_t nrg::os::random ()
 Returns a reasonably random number, not guaranteed to be cryptographically secure.