aboutsummaryrefslogtreecommitdiff
path: root/libOSC/test_OSC_timeTag.c
blob: 8a1cabf80ddeb1f6848ad23292c1d8995de8f14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 1997 Regents of the University of California.
 * All rights reserved.
 *
 * The name of the University may not be used to endorse or promote
 * products derived from this software without specific prior written
 * permission.  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
 * IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 */

/*
 test_OSC_timeTag.c
 Matt Wright, 5/30/97
*/

#include <stdio.h>
#include "OSC_timeTag.h"

main() {
    OSCTimeTag now, later;

    now = OSCTT_CurrentTime();
    printf("Now it's %llu (0x%llx)\n", now, now);

    printf("Immediately would be %llu (0x%llx)\n", OSCTT_Immediately(),
	   OSCTT_Immediately());

    later = OSCTT_PlusSeconds(now, 1.0f);
    printf("One second from now would be %llu (0x%llx)\n", later, later);

    now = OSCTT_CurrentTime();
    printf("And *now* it's %llu (0x%llx)\n", now, now);
}