diff options
Diffstat (limited to 'epoch.c')
| -rw-r--r-- | epoch.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#include <stdio.h> +#include <time.h> + +int main() { + time_t now; + + now = time(NULL); // Get current time + + printf("Seconds since epoch: %ld\n", (long)now); + + return 0; +} |
