GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
utils.cpp File Reference
#include "utils.h"
#include <chrono>
#include <cassert>
#include <iostream>
#include <string>
#include <limits>

Functions

uint64 GetCurrentTime ()
 Number of milliseconds representing time.
 
uint32 GetTimeDiff (uint64 curTime, uint64 prevTime)
 The time difference between 2 times, in milliseconds.
 
void ClearConsole ()
 Empties the console screen.
 
void PauseConsole (const std::string &message)
 Prints a message and waits for a key to be pressed.
 

Function Documentation

void ClearConsole ( )

Empties the console screen.

uint64 GetCurrentTime ( )

Number of milliseconds representing time.

uint32 GetTimeDiff ( uint64  curTime,
uint64  prevTime 
)

The time difference between 2 times, in milliseconds.

void PauseConsole ( const std::string &  message)

Prints a message and waits for a key to be pressed.