Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
#include <ctime>
#include <iostream>
/* This will output the day, time and date to the second */
int dateTest()
{
std::time_t result = std::time(nullptr);
std::cout << std::asctime(std::localtime(&result));
}
/* Have a look at the timercpp or chrono library for potential time mechanics- my results thus far have been inconclusive as to waht is the best way to implement the time mechanic */
/* https://en.cppreference.com/w/cpp/chrono/file_clock <- That should work quite well! */