mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00:00
Add gettimeofday() syscall and LibC wrappers gettimeofday() and time().
This only has second accuracy right now, I'll work out subseconds later.
This commit is contained in:
parent
5978185242
commit
dc6f57f19c
Notes:
sideshowbarker
2024-07-19 18:38:42 +09:00
Author: https://github.com/awesomekling
Commit: dc6f57f19c
20 changed files with 188 additions and 8 deletions
10
Userland/date.cpp
Normal file
10
Userland/date.cpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <LibC/time.h>
|
||||
#include <LibC/stdio.h>
|
||||
|
||||
int main(int c, char** v)
|
||||
{
|
||||
time_t now = time(nullptr);
|
||||
printf("%u\n", now);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue