Rosetta
Namespaces | Functions
sys_util.cc File Reference

All system functions in utility that have no other home. More...

#include <utility/sys_util.hh>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <chrono>
#include <unistd.h>

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 

Functions

void utility::sys_sleep (double const seconds)
 Sleep for a specified number of seconds. More...
 
void utility::rand_sleep ()
 
std::string utility::timestamp ()
 Generate timestamp string. More...
 
std::string utility::timestamp_short ()
 Generate timestamp string, short format. More...
 
std::string utility::timestamp_millis ()
 Generate timestamp string with millis. More...
 
std::string utility::timestamp_millis_short ()
 Generate timestamp string with millis, short format. More...
 

Detailed Description

All system functions in utility that have no other home.

Author
David Kim (dekim.nosp@m.@u.w.nosp@m.ashin.nosp@m.gton.nosp@m..edu)
Todo:

Break out platform-specific code.

Get rid of output messages: unnecessary dependence on <iostream>