std/time.rave

March 12, 2025 ยท View on GitHub

std::getCurrentTime

Sets the std::time structure (by the pointer in the first argument) to the value of the current time.

Example:

std::time time;

std::getCurrentTime(&time);

std::println(time);

std::sleep

Stops the current thread for a while (in milliseconds).

Example:

std::time(100); // Sleep for 100 ms