mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 23:48:19 +00:00
- Bugfixes in PAL and SHIM - Improvement of migration scheme in SHIM, which largely speed up forking - Upgrade glibc to 2.19 - FreeBSD port - Support OpenJDK, python and R
21 lines
467 B
C
21 lines
467 B
C
/* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
|
|
/* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
|
|
|
|
#include <stdio.h>
|
|
#include <sys/time.h>
|
|
|
|
int main(int argc, char ** argv)
|
|
{
|
|
struct timeval time;
|
|
|
|
int ret = gettimeofday(&time, NULL);
|
|
|
|
if (ret < 0) {
|
|
perror("gettimeofday");
|
|
return -1;
|
|
}
|
|
|
|
printf("Current timestamp: %ld\n", time.tv_sec);
|
|
return 0;
|
|
}
|