mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-23 01:39:19 +02:00
Zmiana AnsiString na std::string. Zakończenie sprawy przypadkowo skasowanego mover.h
This commit is contained in:
1059
McZapkie/MOVER.h
1059
McZapkie/MOVER.h
File diff suppressed because it is too large
Load Diff
@@ -69,6 +69,20 @@ inline int Random()
|
||||
return rand();
|
||||
}
|
||||
|
||||
inline double BorlandTime()
|
||||
{
|
||||
std::tm epoch;
|
||||
epoch.tm_sec = 0;
|
||||
epoch.tm_min = 0;
|
||||
epoch.tm_hour = 0;
|
||||
epoch.tm_mday = 1;
|
||||
epoch.tm_mon = 0;
|
||||
epoch.tm_year = 0;
|
||||
time_t basetime = mktime(&epoch);
|
||||
time_t raw_t = time(NULL);
|
||||
return (difftime(raw_t, basetime) / 24) + 2;
|
||||
}
|
||||
|
||||
/*funkcje logiczne*/
|
||||
bool TestFlag(int Flag, int Value);
|
||||
bool SetFlag( int & Flag, int Value);
|
||||
|
||||
Reference in New Issue
Block a user