コード例 #1
0
ファイル: backend.c プロジェクト: JapaMala/hexchat
char *sysinfo_backend_get_uptime(void)
{
    gint64 uptime;

    if ((uptime = xs_parse_uptime ()) == 0)
    {
        return NULL;
    }

    return sysinfo_format_uptime (uptime);
}
コード例 #2
0
ファイル: backend.c プロジェクト: Cynede/hexchat
char *
sysinfo_backend_get_uptime (void)
{
	return sysinfo_format_uptime (GetTickCount64 () / 1000);
}