Skip to content

Commit

Permalink
Define read_time() for SystemZ (s390)
Browse files Browse the repository at this point in the history
Author: Ulrich Weigand
Contributed by: Jonas Paulsson
  • Loading branch information
eeide committed May 31, 2017
1 parent 56af2b6 commit 7b871ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/platform.cpp
Expand Up @@ -75,6 +75,13 @@ static unsigned __int64 read_time(void)
}
return (h << 32) + l;
}
# elif defined(__s390__)
static unsigned long long read_time(void)
{
unsigned long long clk;
asm volatile("stckf %0" : "=Q" (clk) : : "cc");
return clk;
}
# else
static long long read_time(void)
{
Expand Down

0 comments on commit 7b871ac

Please sign in to comment.