1 //===- BuildSystem.cpp - Utilities for use by build systems ---------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements various utilities for use by build systems.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "clang-c/BuildSystem.h"
15 #include "llvm/Support/TimeValue.h"
16 
17 extern "C" {
18 unsigned long long clang_getBuildSessionTimestamp(void) {
19   return llvm::sys::TimeValue::now().toEpochTime();
20 }
21 } // extern "C"
22 
23