The library itself

You can't have EZLib without EZLib!
This commit is contained in:
latenightz 2021-04-26 16:48:45 +00:00
parent f5904808a5
commit b337e38163
1 changed files with 29 additions and 0 deletions

29
lib/ez.h Normal file
View File

@ -0,0 +1,29 @@
// Includes basic EZLib functions
#include <iostream>
#include <chrono>
using namespace std;
void ezl_hello(int nl) {
if (nl == 1) {
cout << "Hello, from EZLib!\n";
} else {
cout << "Hello, from EZLib!";
}
}
void ezl_ver(int nl) {
cout << "This feature is not yet availible in EZLib. int nl:" << nl;
}
void ezl_time(int nl) {
const auto p1 = std::chrono::system_clock::now();
if (nl == 1) {
cout << chrono::duration_cast<std::chrono::seconds>(
p1.time_since_epoch()).count() << "\n";
} else {
cout << chrono::duration_cast<std::chrono::seconds>(
p1.time_since_epoch()).count();
}
}