Changeset 98f06d9 in opengl-game for logger.cpp
- Timestamp:
- May 24, 2019, 8:01:34 PM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- a23fc08
- Parents:
- d9b6a1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logger.cpp
rd9b6a1c r98f06d9 52 52 return true; 53 53 } 54 55 ofstream ofs; 56 57 void open_log() { 58 ofs.open(LOG_FILE, ios::out); 59 60 time_t now = time(NULL); 61 string date(ctime(&now)); 62 ofs << "LOG_FILE log. local time " << date << endl; 63 } 64 65 ofstream& get_log() { 66 return ofs; 67 } 68 69 void close_log() { 70 ofs.close(); 71 }
Note:
See TracChangeset
for help on using the changeset viewer.