Develop Biology
The language of life
bio::physical Namespace Reference

Classes

class  Arrangement
 
class  Axis
 
class  Class
 
class  Filterable
 
class  Identifiable
 
class  Line
 
class  Linear
 
class  Observer
 
class  Periodic
 
class  Perspective
 
struct  PerspectiveUtilities
 
class  Quantum
 
class  Symmetry
 
class  ThreadedPeriodic
 
class  Wave
 

Typedefs

typedef std::vector< const Wave * > ConstWaves
 
typedef std::vector< Symmetry * > Symmetries
 
typedef std::vector< Wave * > Waves
 

Functions

Timestamp GetCurrentTimestamp ()
 

Typedef Documentation

◆ ConstWaves

typedef std::vector< const Wave* > bio::physical::ConstWaves

Definition at line 51 of file Wave.h.

◆ Symmetries

typedef std::vector< Symmetry* > bio::physical::Symmetries

Definition at line 46 of file Wave.h.

◆ Waves

typedef std::vector< Wave* > bio::physical::Waves

Definition at line 50 of file Wave.h.

Function Documentation

◆ GetCurrentTimestamp()

Timestamp bio::physical::GetCurrentTimestamp ( )

Uses std::chrono to return the time since epoch.

Returns
the current time as a Timestamp.

Definition at line 41 of file Time.cpp.

42{
43 #ifdef BIO_FAKE_SYSTEM_TIME
44 return g_fakeTime;
45 #elif BIO_CPP_VERSION < 11
46 return 0; //TODO...
47 #else
48 using namespace std::chrono;
49 auto now = time_point_cast<milliseconds>(system_clock::now());
50 return now.time_since_epoch().count();
51 #endif
52}

Referenced by bio::physical::Periodic::CheckIn(), bio::log::Engine::Log(), and bio::physical::ThreadedPeriodic::Work().