Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bsmap/utilities.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (19 sloc)
530 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _UTILITIES_H_ | |
#define _UTILITIES_H_ | |
#include<time.h> | |
#include "param.h" | |
using namespace std; | |
time_t Initial_Time(); | |
//time used during the past step | |
time_t Cal_StepTime(); | |
//total time exhaust | |
time_t Cal_AllTime(); | |
//current time on string format | |
char * Curr_Time(); | |
bit32_t myrand(int i, bit32_t * rseed); | |
bool HitComp(gHit a, gHit b); | |
bool HitComp2(gHit a, gHit b); | |
bool HitCompChr(Hit a, Hit b); | |
void disp_bfa(bit32_t a, int len=16); | |
void disp_bfa64(bit64_t a, int len=32); | |
#endif //_UTILITIES_H_ |