[LLVMdev] API to retrieve current time.

Mahadevan R mdevan.foobar at gmail.com
Sun Jun 15 08:12:26 PDT 2008

> What's the API to retrieve current time of day in llc?
> I need to use this to generate an unique number every time llc runs.

The llvm.readcyclecounter might suit your needs:


More information about the llvm-dev mailing list